diff options
Diffstat (limited to 'libbuild/WebCat-swf/src/pt/tumba/parser/swf/Actions.java')
| -rw-r--r-- | libbuild/WebCat-swf/src/pt/tumba/parser/swf/Actions.java | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/libbuild/WebCat-swf/src/pt/tumba/parser/swf/Actions.java b/libbuild/WebCat-swf/src/pt/tumba/parser/swf/Actions.java deleted file mode 100644 index f2ea73334..000000000 --- a/libbuild/WebCat-swf/src/pt/tumba/parser/swf/Actions.java +++ /dev/null @@ -1,115 +0,0 @@ -package pt.tumba.parser.swf; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.util.ArrayList; - -/** - * A set of actions - * - *@author unknown - *@created 15 de Setembro de 2002 - */ -public class Actions extends ActionWriter { - - protected int conditions; - protected byte[] bytes; - - - /** - * Constructor for the Actions object - * - *@param conditions Description of the Parameter - *@param flashVersion Description of the Parameter - */ - public Actions(int conditions, int flashVersion) { - super(null, flashVersion); - - this.conditions = conditions; - count = 0; - bout = new ByteArrayOutputStream(); - out = new OutStream(bout); - pushValues = new ArrayList(); - labels = null; - jumps = null; - skips = null; - blocks = null; - blockStack = null; - } - - - /** - * Constructor for the Actions object - * - *@param flashVersion Description of the Parameter - */ - public Actions(int flashVersion) { - this(0, flashVersion); - } - - - /** - * Parse the action contents and write them to the SWFActions interface - * - *@param swfactions Description of the Parameter - *@exception IOException Description of the Exception - */ - public void write(SWFActions swfactions) throws IOException { - ActionParser parser = new ActionParser(swfactions); - swfactions.start(conditions); - parser.parse(bytes); - swfactions.done(); - } - - - /** - * The condition flags depend on context - frame, button or clip actions - * - *@return The conditions value - */ - public int getConditions() { - return conditions; - } - - - /** - * Sets the conditions attribute of the Actions object - * - *@param conds The new conditions value - */ - public void setConditions(int conds) { - this.conditions = conds; - } - - - /** - * SWFActions interface - * - *@param conditions Description of the Parameter - *@exception IOException Description of the Exception - */ - public void start(int conditions) throws IOException { - //do nothing - } - - - /** - * Description of the Method - * - *@param bytes Description of the Parameter - *@exception IOException Description of the Exception - */ - protected void writeBytes(byte[] bytes) throws IOException { - this.bytes = bytes; - } - - - /** - * SWFActions interface - * - *@exception IOException Description of the Exception - */ - public void done() throws IOException { - //do nothing - } -} |
