pt.tumba.parser.swf
Class Unprotector

java.lang.Object
  extended by pt.tumba.parser.swf.Unprotector
All Implemented Interfaces:
SWFHeader, SWFTags

public class Unprotector
extends java.lang.Object
implements SWFTags

Utility to unprotect a SWF. First arg is input filename. Second arg is output filename.

Author:
unknown

Field Summary
protected  SWFTags writer
          Description of the Field
 
Constructor Summary
Unprotector(SWFTags writer)
          Constructor for the Unprotector object
 
Method Summary
 void header(int version, long length, int twipsWidth, int twipsHeight, int frameRate, int frameCount)
          Interface SWFTags
static void main(java.lang.String[] args)
          The main program for the Unprotector class
 void tag(int tagType, boolean longTag, byte[] contents)
          Interface SWFTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected SWFTags writer
Description of the Field

Constructor Detail

Unprotector

public Unprotector(SWFTags writer)
Constructor for the Unprotector object

Parameters:
writer - Description of the Parameter
Method Detail

header

public void header(int version,
                   long length,
                   int twipsWidth,
                   int twipsHeight,
                   int frameRate,
                   int frameCount)
            throws java.io.IOException
Interface SWFTags

Specified by:
header in interface SWFHeader
Parameters:
version - Description of the Parameter
length - Description of the Parameter
twipsWidth - Description of the Parameter
twipsHeight - Description of the Parameter
frameRate - Description of the Parameter
frameCount - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

tag

public void tag(int tagType,
                boolean longTag,
                byte[] contents)
         throws java.io.IOException
Interface SWFTags

Specified by:
tag in interface SWFTags
Parameters:
tagType - Description of the Parameter
longTag - Description of the Parameter
contents - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
The main program for the Unprotector class

Parameters:
args - The command line arguments
Throws:
java.io.IOException - Description of the Exception