|
||||||||||
| 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 Parameter| Method Detail |
|---|
protected int writeCode(int code)
throws java.io.IOException
code - Description of the Parameter
java.io.IOException - Description of the Exception
public void start(int conditions)
throws java.io.IOException
start in interface SWFActionsconditions - Description of the Parameter
java.io.IOException - Description of the Exception
public void end()
throws java.io.IOException
end in interface SWFActionsjava.io.IOException - Description of the Exception
public void blob(byte[] blob)
throws java.io.IOException
blob in interface SWFActionsblob - Description of the Parameter
java.io.IOException - Description of the Exception
protected void writeBytes(byte[] bytes)
throws java.io.IOException
bytes - Description of the Parameter
java.io.IOException - Description of the Exception
public void done()
throws java.io.IOException
done in interface SWFActionsjava.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 Parameter
public void comment(java.lang.String comment)
throws java.io.IOException
comment in interface SWFActionscomment - Description of the Parameter
java.io.IOException - Description of the Exception
public void unknown(int code,
byte[] data)
throws java.io.IOException
unknown in interface SWFActionscode - Description of the Parameterdata - Description of the Parameter
java.io.IOException - Description of the Exception
public void initArray()
throws java.io.IOException
initArray in interface SWFActionsjava.io.IOException - Description of the Exception
public void jumpLabel(java.lang.String label)
throws java.io.IOException
jumpLabel in interface SWFActionslabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void gotoFrame(int frameNumber)
throws java.io.IOException
gotoFrame in interface SWFActionsframeNumber - Description of the Parameter
java.io.IOException - Description of the Exception
public void gotoFrame(java.lang.String label)
throws java.io.IOException
gotoFrame in interface SWFActionslabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void getURL(java.lang.String url,
java.lang.String target)
throws java.io.IOException
getURL in interface SWFActionsurl - Description of the Parametertarget - Description of the Parameter
java.io.IOException - Description of the Exception
public void nextFrame()
throws java.io.IOException
nextFrame in interface SWFActionsjava.io.IOException - Description of the Exception
public void prevFrame()
throws java.io.IOException
prevFrame in interface SWFActionsjava.io.IOException - Description of the Exception
public void play()
throws java.io.IOException
play in interface SWFActionsjava.io.IOException - Description of the Exception
public void stop()
throws java.io.IOException
stop in interface SWFActionsjava.io.IOException - Description of the Exception
public void toggleQuality()
throws java.io.IOException
toggleQuality in interface SWFActionsjava.io.IOException - Description of the Exception
public void stopSounds()
throws java.io.IOException
stopSounds in interface SWFActionsjava.io.IOException - Description of the Exception
public void setTarget(java.lang.String target)
throws java.io.IOException
setTarget in interface SWFActionstarget - The new target value
java.io.IOException - Description of the Exception
protected 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 Exception
public void jump(java.lang.String jumpLabel)
throws java.io.IOException
jump in interface SWFActionsjumpLabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void ifJump(java.lang.String jumpLabel)
throws java.io.IOException
ifJump in interface SWFActionsjumpLabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void waitForFrame(int frameNumber,
java.lang.String jumpLabel)
throws java.io.IOException
waitForFrame in interface SWFActionsframeNumber - Description of the ParameterjumpLabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void waitForFrame(java.lang.String jumpLabel)
throws java.io.IOException
waitForFrame in interface SWFActionsjumpLabel - Description of the Parameter
java.io.IOException - Description of the Exception
public void pop()
throws java.io.IOException
pop in interface SWFActionsjava.io.IOException - Description of the Exception
public void add()
throws java.io.IOException
add in interface SWFActionsjava.io.IOException - Description of the Exception
public void substract()
throws java.io.IOException
substract in interface SWFActionsjava.io.IOException - Description of the Exception
public void multiply()
throws java.io.IOException
multiply in interface SWFActionsjava.io.IOException - Description of the Exception
public void divide()
throws java.io.IOException
divide in interface SWFActionsjava.io.IOException - Description of the Exception
public void equals()
throws java.io.IOException
equals in interface SWFActionsjava.io.IOException - Description of the Exception
public void lessThan()
throws java.io.IOException
lessThan in interface SWFActionsjava.io.IOException - Description of the Exception
public void and()
throws java.io.IOException
and in interface SWFActionsjava.io.IOException - Description of the Exception
public void or()
throws java.io.IOException
or in interface SWFActionsjava.io.IOException - Description of the Exception
public void not()
throws java.io.IOException
not in interface SWFActionsjava.io.IOException - Description of the Exception
public void stringEquals()
throws java.io.IOException
stringEquals in interface SWFActionsjava.io.IOException - Description of the Exception
public void stringLength()
throws java.io.IOException
stringLength in interface SWFActionsjava.io.IOException - Description of the Exception
public void concat()
throws java.io.IOException
concat in interface SWFActionsjava.io.IOException - Description of the Exception
public void substring()
throws java.io.IOException
substring in interface SWFActionsjava.io.IOException - Description of the Exception
public void stringLessThan()
throws java.io.IOException
stringLessThan in interface SWFActionsjava.io.IOException - Description of the Exception
public void stringLengthMB()
throws java.io.IOException
stringLengthMB in interface SWFActionsjava.io.IOException - Description of the Exception
public void substringMB()
throws java.io.IOException
substringMB in interface SWFActionsjava.io.IOException - Description of the Exception
public void toInteger()
throws java.io.IOException
toInteger in interface SWFActionsjava.io.IOException - Description of the Exception
public void charToAscii()
throws java.io.IOException
charToAscii in interface SWFActionsjava.io.IOException - Description of the Exception
public void asciiToChar()
throws java.io.IOException
asciiToChar in interface SWFActionsjava.io.IOException - Description of the Exception
public void charMBToAscii()
throws java.io.IOException
charMBToAscii in interface SWFActionsjava.io.IOException - Description of the Exception
public void asciiToCharMB()
throws java.io.IOException
asciiToCharMB in interface SWFActionsjava.io.IOException - Description of the Exception
public void call()
throws java.io.IOException
call in interface SWFActionsjava.io.IOException - Description of the Exception
public void getVariable()
throws java.io.IOException
getVariable in interface SWFActionsjava.io.IOException - Description of the Exception
public void setVariable()
throws java.io.IOException
setVariable in interface SWFActionsjava.io.IOException - Description of the Exception
public void getURL(int sendVars,
int loadMode)
throws java.io.IOException
getURL in interface SWFActionssendVars - Description of the ParameterloadMode - Description of the Parameter
java.io.IOException - Description of the Exception
public void gotoFrame(boolean play)
throws java.io.IOException
gotoFrame in interface SWFActionsplay - Description of the Parameter
java.io.IOException - Description of the Exception
public void setTarget()
throws java.io.IOException
setTarget in interface SWFActionsjava.io.IOException - Description of the Exception
public void getProperty()
throws java.io.IOException
getProperty in interface SWFActionsjava.io.IOException - Description of the Exception
public void setProperty()
throws java.io.IOException
setProperty in interface SWFActionsjava.io.IOException - Description of the Exception
public void cloneSprite()
throws java.io.IOException
cloneSprite in interface SWFActionsjava.io.IOException - Description of the Exception
public void removeSprite()
throws java.io.IOException
removeSprite in interface SWFActionsjava.io.IOException - Description of the Exception
public void startDrag()
throws java.io.IOException
startDrag in interface SWFActionsjava.io.IOException - Description of the Exception
public void endDrag()
throws java.io.IOException
endDrag in interface SWFActionsjava.io.IOException - Description of the Exception
public void trace()
throws java.io.IOException
trace in interface SWFActionsjava.io.IOException - Description of the Exception
public void getTime()
throws java.io.IOException
getTime in interface SWFActionsjava.io.IOException - Description of the Exception
public void randomNumber()
throws java.io.IOException
randomNumber in interface SWFActionsjava.io.IOException - Description of the Exception
public void lookupTable(java.lang.String[] values)
throws java.io.IOException
lookupTable in interface SWFActionsvalues - Description of the Parameter
java.io.IOException - Description of the Exception
public void callFunction()
throws java.io.IOException
callFunction in interface SWFActionsjava.io.IOException - Description of the Exception
public void callMethod()
throws java.io.IOException
callMethod in interface SWFActionsjava.io.IOException - Description of the Exception
public void startFunction(java.lang.String name,
java.lang.String[] paramNames)
throws java.io.IOException
startFunction in interface SWFActionsname - Description of the ParameterparamNames - Description of the Parameter
java.io.IOException - Description of the Exception
public void endBlock()
throws java.io.IOException
endBlock in interface SWFActionsjava.io.IOException - Description of the Exception
public void defineLocalValue()
throws java.io.IOException
defineLocalValue in interface SWFActionsjava.io.IOException - Description of the Exception
public void defineLocal()
throws java.io.IOException
defineLocal in interface SWFActionsjava.io.IOException - Description of the Exception
public void deleteProperty()
throws java.io.IOException
deleteProperty in interface SWFActionsjava.io.IOException - Description of the Exception
public void deleteThreadVars()
throws java.io.IOException
deleteThreadVars in interface SWFActionsjava.io.IOException - Description of the Exception
public void enumerate()
throws java.io.IOException
enumerate in interface SWFActionsjava.io.IOException - Description of the Exception
public void typedEquals()
throws java.io.IOException
typedEquals in interface SWFActionsjava.io.IOException - Description of the Exception
public void getMember()
throws java.io.IOException
getMember in interface SWFActionsjava.io.IOException - Description of the Exception
public void initObject()
throws java.io.IOException
initObject in interface SWFActionsjava.io.IOException - Description of the Exception
public void newMethod()
throws java.io.IOException
newMethod in interface SWFActionsjava.io.IOException - Description of the Exception
public void newObject()
throws java.io.IOException
newObject in interface SWFActionsjava.io.IOException - Description of the Exception
public void setMember()
throws java.io.IOException
setMember in interface SWFActionsjava.io.IOException - Description of the Exception
public void getTargetPath()
throws java.io.IOException
getTargetPath in interface SWFActionsjava.io.IOException - Description of the Exception
public void startWith()
throws java.io.IOException
startWith in interface SWFActionsjava.io.IOException - Description of the Exception
public void duplicate()
throws java.io.IOException
duplicate in interface SWFActionsjava.io.IOException - Description of the Exception
public void returnValue()
throws java.io.IOException
returnValue in interface SWFActionsjava.io.IOException - Description of the Exception
public void swap()
throws java.io.IOException
swap in interface SWFActionsjava.io.IOException - Description of the Exception
public void storeInRegister(int registerNumber)
throws java.io.IOException
storeInRegister in interface SWFActionsregisterNumber - Description of the Parameter
java.io.IOException - Description of the Exception
public void convertToNumber()
throws java.io.IOException
convertToNumber in interface SWFActionsjava.io.IOException - Description of the Exception
public void convertToString()
throws java.io.IOException
convertToString in interface SWFActionsjava.io.IOException - Description of the Exception
public void typeOf()
throws java.io.IOException
typeOf in interface SWFActionsjava.io.IOException - Description of the Exception
public void typedAdd()
throws java.io.IOException
typedAdd in interface SWFActionsjava.io.IOException - Description of the Exception
public void typedLessThan()
throws java.io.IOException
typedLessThan in interface SWFActionsjava.io.IOException - Description of the Exception
public void modulo()
throws java.io.IOException
modulo in interface SWFActionsjava.io.IOException - Description of the Exception
public void bitAnd()
throws java.io.IOException
bitAnd in interface SWFActionsjava.io.IOException - Description of the Exception
public void bitOr()
throws java.io.IOException
bitOr in interface SWFActionsjava.io.IOException - Description of the Exception
public void bitXor()
throws java.io.IOException
bitXor in interface SWFActionsjava.io.IOException - Description of the Exception
public void shiftLeft()
throws java.io.IOException
shiftLeft in interface SWFActionsjava.io.IOException - Description of the Exception
public void shiftRight()
throws java.io.IOException
shiftRight in interface SWFActionsjava.io.IOException - Description of the Exception
public void shiftRightUnsigned()
throws java.io.IOException
shiftRightUnsigned in interface SWFActionsjava.io.IOException - Description of the Exception
public void decrement()
throws java.io.IOException
decrement in interface SWFActionsjava.io.IOException - Description of the Exception
public void increment()
throws java.io.IOException
increment in interface SWFActionsjava.io.IOException - Description of the Exception
protected void flushPushValues()
throws java.io.IOException
java.io.IOException - Description of the Exception
public void push(java.lang.String value)
throws java.io.IOException
push in interface SWFActionsvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(float value)
throws java.io.IOException
push in interface SWFActionsvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(double value)
throws java.io.IOException
push in interface SWFActionsvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void pushNull()
throws java.io.IOException
pushNull in interface SWFActionsjava.io.IOException - Description of the Exception
public void pushRegister(int registerNumber)
throws java.io.IOException
pushRegister in interface SWFActionsregisterNumber - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(boolean value)
throws java.io.IOException
push in interface SWFActionsvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void push(int value)
throws java.io.IOException
push in interface SWFActionsvalue - Description of the Parameter
java.io.IOException - Description of the Exception
public void lookup(int dictionaryIndex)
throws java.io.IOException
lookup in interface SWFActionsdictionaryIndex - 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 | |||||||||