pt.tumba.parser.swf
Class SWFReader

java.lang.Object
  extended by pt.tumba.parser.swf.SWFReader

public class SWFReader
extends java.lang.Object

Reads a SWF input stream and drives the SWFConsumer interface.

Author:
unknown

Field Summary
protected  SWFTags consumer
          Description of the Field
protected  InStream in
          Description of the Field
protected  java.io.InputStream inputstream
          Description of the Field
 int size
          Description of the Field
 
Constructor Summary
SWFReader(SWFTags consumer, java.io.InputStream inputstream)
          Constructor for the SWFReader object
SWFReader(SWFTags consumer, InStream instream)
          Constructor for the SWFReader object
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the SWFReader class
 void readFile()
          Drive the consumer by reading a SWF File - including the header and all tags
 void readHeader()
          Only read the SWF file header
 int readOneTag()
          Drive the consumer by reading one tag
 void readTags()
          Drive the consumer by reading SWF tags only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

consumer

protected SWFTags consumer
Description of the Field


in

protected InStream in
Description of the Field


inputstream

protected java.io.InputStream inputstream
Description of the Field


size

public int size
Description of the Field

Constructor Detail

SWFReader

public SWFReader(SWFTags consumer,
                 java.io.InputStream inputstream)
Constructor for the SWFReader object

Parameters:
consumer - Description of the Parameter
inputstream - Description of the Parameter

SWFReader

public SWFReader(SWFTags consumer,
                 InStream instream)
Constructor for the SWFReader object

Parameters:
consumer - Description of the Parameter
instream - Description of the Parameter
Method Detail

readFile

public void readFile()
              throws java.io.IOException
Drive the consumer by reading a SWF File - including the header and all tags

Throws:
java.io.IOException - Description of the Exception

readTags

public void readTags()
              throws java.io.IOException
Drive the consumer by reading SWF tags only

Throws:
java.io.IOException - Description of the Exception

readOneTag

public int readOneTag()
               throws java.io.IOException
Drive the consumer by reading one tag

Returns:
the tag type
Throws:
java.io.IOException - Description of the Exception

readHeader

public void readHeader()
                throws java.io.IOException
Only read the SWF file header

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 SWFReader class

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