|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.ActionWriter
public class ActionWriter
A writer that implements the SWFActions interface and writes action bytes to an OutStream
Field Summary | |
---|---|
protected java.util.List |
blocks
Description of the Field |
protected java.util.Stack |
blockStack
Description of the Field |
protected java.io.ByteArrayOutputStream |
bout
Description of the Field |
protected int |
count
Description of the Field |
protected int |
flashVersion
Description of the Field |
protected java.util.List |
jumps
Description of the Field |
protected java.util.Hashtable |
labels
Description of the Field |
protected OutStream |
out
Description of the Field |
protected java.util.List |
pushValues
Description of the Field |
protected java.util.List |
skips
Description of the Field |
protected TagWriter |
tagWriter
Description of the Field |
Fields inherited from interface pt.tumba.parser.swf.SWFActions |
---|
GET_URL_MODE_LOAD_MOVIE_INTO_LEVEL, GET_URL_MODE_LOAD_MOVIE_INTO_SPRITE, GET_URL_MODE_LOAD_VARS_INTO_LEVEL, GET_URL_MODE_LOAD_VARS_INTO_SPRITE, GET_URL_SEND_VARS_GET, GET_URL_SEND_VARS_NONE, GET_URL_SEND_VARS_POST |
Constructor Summary | |
---|---|
ActionWriter(TagWriter tagWriter,
int flashVersion)
Constructor for the ActionWriter object |
Method Summary | |
---|---|
void |
add()
SWFActions interface |
void |
and()
SWFActions interface |
void |
asciiToChar()
SWFActions interface |
void |
asciiToCharMB()
SWFActions interface |
void |
bitAnd()
SWFActions interface |
void |
bitOr()
SWFActions interface |
void |
bitXor()
SWFActions interface |
void |
blob(byte[] blob)
Pass through a blob of actions |
void |
call()
SWFActions interface |
void |
callFunction()
SWFActions interface |
void |
callMethod()
SWFActions interface |
void |
charMBToAscii()
SWFActions interface |
void |
charToAscii()
SWFActions interface |
void |
cloneSprite()
SWFActions interface |
void |
comment(java.lang.String comment)
SWFActions interface |
void |
concat()
SWFActions interface |
void |
convertToNumber()
SWFActions interface |
void |
convertToString()
SWFActions interface |
void |
decrement()
SWFActions interface |
void |
defineLocal()
SWFActions interface |
void |
defineLocalValue()
SWFActions interface |
void |
deleteProperty()
SWFActions interface |
void |
deleteThreadVars()
SWFActions interface |
void |
divide()
SWFActions interface |
void |
done()
SWFActions interface |
void |
duplicate()
SWFActions interface |
void |
end()
SWFActions interface |
void |
endBlock()
SWFActions interface |
void |
endDrag()
SWFActions interface |
void |
enumerate()
SWFActions interface |
void |
equals()
SWFActions interface |
protected void |
fixupBlocks(byte[] bytes2)
Description of the Method |
protected void |
fixupJumps(byte[] bytes2)
Description of the Method |
protected void |
fixupSkips(byte[] bytes2)
Description of the Method |
protected void |
flushPushValues()
Description of the Method |
void |
getMember()
SWFActions interface |
void |
getProperty()
SWFActions interface |
void |
getTargetPath()
SWFActions interface |
void |
getTime()
SWFActions interface |
void |
getURL(int sendVars,
int loadMode)
SWFActions interface |
void |
getURL(java.lang.String url,
java.lang.String target)
SWFActions interface |
void |
getVariable()
SWFActions interface |
void |
gotoFrame(boolean play)
SWFActions interface |
void |
gotoFrame(int frameNumber)
SWFActions interface |
void |
gotoFrame(java.lang.String label)
SWFActions interface |
void |
ifJump(java.lang.String jumpLabel)
SWFActions interface |
void |
increment()
SWFActions interface |
void |
initArray()
SWFActions interface |
void |
initObject()
SWFActions interface |
void |
jump(java.lang.String jumpLabel)
SWFActions interface |
void |
jumpLabel(java.lang.String label)
SWFActions interface |
void |
lessThan()
SWFActions interface |
void |
lookup(int dictionaryIndex)
SWFActions interface |
void |
lookupTable(java.lang.String[] values)
SWFActions interface |
void |
modulo()
SWFActions interface |
void |
multiply()
SWFActions interface |
void |
newMethod()
SWFActions interface |
void |
newObject()
SWFActions interface |
void |
nextFrame()
SWFActions interface |
void |
not()
SWFActions interface |
void |
or()
SWFActions interface |
void |
play()
SWFActions interface |
void |
pop()
SWFActions interface |
void |
prevFrame()
SWFActions interface |
void |
push(boolean value)
SWFActions interface |
void |
push(double value)
SWFActions interface |
void |
push(float value)
SWFActions interface |
void |
push(int value)
SWFActions interface |
void |
push(java.lang.String value)
SWFActions interface |
void |
pushNull()
SWFActions interface |
void |
pushRegister(int registerNumber)
SWFActions interface |
void |
randomNumber()
SWFActions interface |
void |
removeSprite()
SWFActions interface |
void |
returnValue()
SWFActions interface |
void |
setMember()
SWFActions interface |
void |
setProperty()
SWFActions interface |
void |
setTarget()
SWFActions interface |
void |
setTarget(java.lang.String target)
SWFActions interface |
void |
setVariable()
SWFActions interface |
void |
shiftLeft()
SWFActions interface |
void |
shiftRight()
SWFActions interface |
void |
shiftRightUnsigned()
SWFActions interface |
void |
start(int conditions)
SWFActions interface |
void |
startDrag()
SWFActions interface |
void |
startFunction(java.lang.String name,
java.lang.String[] paramNames)
SWFActions interface |
void |
startWith()
SWFActions interface |
void |
stop()
SWFActions interface |
void |
stopSounds()
SWFActions interface |
void |
storeInRegister(int registerNumber)
SWFActions interface |
void |
stringEquals()
SWFActions interface |
void |
stringLength()
SWFActions interface |
void |
stringLengthMB()
SWFActions interface |
void |
stringLessThan()
SWFActions interface |
void |
substract()
SWFActions interface |
void |
substring()
SWFActions interface |
void |
substringMB()
SWFActions interface |
void |
swap()
SWFActions interface |
void |
toggleQuality()
SWFActions interface |
void |
toInteger()
SWFActions interface |
void |
trace()
SWFActions interface |
void |
typedAdd()
SWFActions interface |
void |
typedEquals()
SWFActions interface |
void |
typedLessThan()
SWFActions interface |
void |
typeOf()
SWFActions interface |
void |
unknown(int code,
byte[] data)
SWFActions interface |
void |
waitForFrame(int frameNumber,
java.lang.String jumpLabel)
SWFActions interface |
void |
waitForFrame(java.lang.String jumpLabel)
SWFActions interface |
protected void |
writeBytes(byte[] bytes)
Description of the Method |
protected int |
writeCode(int code)
|
protected void |
writeJump(java.lang.String label,
int code)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TagWriter tagWriter
protected OutStream out
protected java.io.ByteArrayOutputStream bout
protected int count
protected int flashVersion
protected java.util.List pushValues
protected java.util.Hashtable labels
protected java.util.List jumps
protected java.util.List skips
protected java.util.List blocks
protected java.util.Stack blockStack
Constructor Detail |
---|
public ActionWriter(TagWriter tagWriter, int flashVersion)
tagWriter
- Description of the ParameterflashVersion
- Description of the ParameterMethod Detail |
---|
protected int writeCode(int code) throws java.io.IOException
code
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void start(int conditions) throws java.io.IOException
start
in interface SWFActions
conditions
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void end() throws java.io.IOException
end
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void blob(byte[] blob) throws java.io.IOException
blob
in interface SWFActions
blob
- Description of the Parameter
java.io.IOException
- Description of the Exceptionprotected void writeBytes(byte[] bytes) throws java.io.IOException
bytes
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void done() throws java.io.IOException
done
in interface SWFActions
java.io.IOException
- Description of the Exceptionprotected void fixupBlocks(byte[] bytes2)
bytes
- Description of the Parameterprotected void fixupJumps(byte[] bytes2)
bytes
- Description of the Parameterprotected void fixupSkips(byte[] bytes2)
bytes
- Description of the Parameterpublic void comment(java.lang.String comment) throws java.io.IOException
comment
in interface SWFActions
comment
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void unknown(int code, byte[] data) throws java.io.IOException
unknown
in interface SWFActions
code
- Description of the Parameterdata
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void initArray() throws java.io.IOException
initArray
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void jumpLabel(java.lang.String label) throws java.io.IOException
jumpLabel
in interface SWFActions
label
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void gotoFrame(int frameNumber) throws java.io.IOException
gotoFrame
in interface SWFActions
frameNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void gotoFrame(java.lang.String label) throws java.io.IOException
gotoFrame
in interface SWFActions
label
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void getURL(java.lang.String url, java.lang.String target) throws java.io.IOException
getURL
in interface SWFActions
url
- Description of the Parametertarget
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void nextFrame() throws java.io.IOException
nextFrame
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void prevFrame() throws java.io.IOException
prevFrame
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void play() throws java.io.IOException
play
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void stop() throws java.io.IOException
stop
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void toggleQuality() throws java.io.IOException
toggleQuality
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void stopSounds() throws java.io.IOException
stopSounds
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void setTarget(java.lang.String target) throws java.io.IOException
setTarget
in interface SWFActions
target
- The new target value
java.io.IOException
- Description of the Exceptionprotected void writeJump(java.lang.String label, int code) throws java.io.IOException
label
- Description of the Parametercode
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void jump(java.lang.String jumpLabel) throws java.io.IOException
jump
in interface SWFActions
jumpLabel
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void ifJump(java.lang.String jumpLabel) throws java.io.IOException
ifJump
in interface SWFActions
jumpLabel
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void waitForFrame(int frameNumber, java.lang.String jumpLabel) throws java.io.IOException
waitForFrame
in interface SWFActions
frameNumber
- Description of the ParameterjumpLabel
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void waitForFrame(java.lang.String jumpLabel) throws java.io.IOException
waitForFrame
in interface SWFActions
jumpLabel
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void pop() throws java.io.IOException
pop
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void add() throws java.io.IOException
add
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void substract() throws java.io.IOException
substract
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void multiply() throws java.io.IOException
multiply
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void divide() throws java.io.IOException
divide
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void equals() throws java.io.IOException
equals
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void lessThan() throws java.io.IOException
lessThan
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void and() throws java.io.IOException
and
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void or() throws java.io.IOException
or
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void not() throws java.io.IOException
not
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void stringEquals() throws java.io.IOException
stringEquals
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void stringLength() throws java.io.IOException
stringLength
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void concat() throws java.io.IOException
concat
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void substring() throws java.io.IOException
substring
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void stringLessThan() throws java.io.IOException
stringLessThan
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void stringLengthMB() throws java.io.IOException
stringLengthMB
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void substringMB() throws java.io.IOException
substringMB
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void toInteger() throws java.io.IOException
toInteger
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void charToAscii() throws java.io.IOException
charToAscii
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void asciiToChar() throws java.io.IOException
asciiToChar
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void charMBToAscii() throws java.io.IOException
charMBToAscii
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void asciiToCharMB() throws java.io.IOException
asciiToCharMB
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void call() throws java.io.IOException
call
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void getVariable() throws java.io.IOException
getVariable
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void setVariable() throws java.io.IOException
setVariable
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void getURL(int sendVars, int loadMode) throws java.io.IOException
getURL
in interface SWFActions
sendVars
- Description of the ParameterloadMode
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void gotoFrame(boolean play) throws java.io.IOException
gotoFrame
in interface SWFActions
play
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void setTarget() throws java.io.IOException
setTarget
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void getProperty() throws java.io.IOException
getProperty
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void setProperty() throws java.io.IOException
setProperty
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void cloneSprite() throws java.io.IOException
cloneSprite
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void removeSprite() throws java.io.IOException
removeSprite
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void startDrag() throws java.io.IOException
startDrag
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void endDrag() throws java.io.IOException
endDrag
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void trace() throws java.io.IOException
trace
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void getTime() throws java.io.IOException
getTime
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void randomNumber() throws java.io.IOException
randomNumber
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void lookupTable(java.lang.String[] values) throws java.io.IOException
lookupTable
in interface SWFActions
values
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void callFunction() throws java.io.IOException
callFunction
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void callMethod() throws java.io.IOException
callMethod
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void startFunction(java.lang.String name, java.lang.String[] paramNames) throws java.io.IOException
startFunction
in interface SWFActions
name
- Description of the ParameterparamNames
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void endBlock() throws java.io.IOException
endBlock
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void defineLocalValue() throws java.io.IOException
defineLocalValue
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void defineLocal() throws java.io.IOException
defineLocal
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void deleteProperty() throws java.io.IOException
deleteProperty
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void deleteThreadVars() throws java.io.IOException
deleteThreadVars
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void enumerate() throws java.io.IOException
enumerate
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void typedEquals() throws java.io.IOException
typedEquals
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void getMember() throws java.io.IOException
getMember
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void initObject() throws java.io.IOException
initObject
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void newMethod() throws java.io.IOException
newMethod
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void newObject() throws java.io.IOException
newObject
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void setMember() throws java.io.IOException
setMember
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void getTargetPath() throws java.io.IOException
getTargetPath
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void startWith() throws java.io.IOException
startWith
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void duplicate() throws java.io.IOException
duplicate
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void returnValue() throws java.io.IOException
returnValue
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void swap() throws java.io.IOException
swap
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void storeInRegister(int registerNumber) throws java.io.IOException
storeInRegister
in interface SWFActions
registerNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void convertToNumber() throws java.io.IOException
convertToNumber
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void convertToString() throws java.io.IOException
convertToString
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void typeOf() throws java.io.IOException
typeOf
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void typedAdd() throws java.io.IOException
typedAdd
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void typedLessThan() throws java.io.IOException
typedLessThan
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void modulo() throws java.io.IOException
modulo
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void bitAnd() throws java.io.IOException
bitAnd
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void bitOr() throws java.io.IOException
bitOr
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void bitXor() throws java.io.IOException
bitXor
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void shiftLeft() throws java.io.IOException
shiftLeft
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void shiftRight() throws java.io.IOException
shiftRight
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void shiftRightUnsigned() throws java.io.IOException
shiftRightUnsigned
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void decrement() throws java.io.IOException
decrement
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void increment() throws java.io.IOException
increment
in interface SWFActions
java.io.IOException
- Description of the Exceptionprotected void flushPushValues() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic void push(java.lang.String value) throws java.io.IOException
push
in interface SWFActions
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(float value) throws java.io.IOException
push
in interface SWFActions
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(double value) throws java.io.IOException
push
in interface SWFActions
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void pushNull() throws java.io.IOException
pushNull
in interface SWFActions
java.io.IOException
- Description of the Exceptionpublic void pushRegister(int registerNumber) throws java.io.IOException
pushRegister
in interface SWFActions
registerNumber
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(boolean value) throws java.io.IOException
push
in interface SWFActions
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void push(int value) throws java.io.IOException
push
in interface SWFActions
value
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void lookup(int dictionaryIndex) throws java.io.IOException
lookup
in interface SWFActions
dictionaryIndex
- Description of the Parameter
java.io.IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |