org.freehep.graphicsio.swf
Class SWFInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--org.freehep.util.io.DecompressableInputStream
|
+--org.freehep.util.io.BitInputStream
|
+--org.freehep.util.io.ByteOrderInputStream
|
+--org.freehep.util.io.ByteCountInputStream
|
+--org.freehep.util.io.TaggedInputStream
|
+--org.freehep.graphicsio.swf.SWFInputStream
- All Implemented Interfaces:
- DataInput, SWFConstants
- public class SWFInputStream
- extends TaggedInputStream
- implements SWFConstants
This class extends the TaggedInputStream with several methods
to read SWF primitives from the stream and to read TagHeaders.
It also handles the management of the SWFDictionary.
- Version:
- $Id: SWFInputStream.java,v 1.5 2003/04/15 18:03:06 duns Exp $
- Author:
- Mark Donszelmann, Charles Loomis
Methods inherited from class org.freehep.util.io.ByteOrderInputStream |
readAsciiZString, readBoolean, readByte, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readInt, readLine, readLong, readShort, readShort, readUnsignedByte, readUnsignedByte, readUnsignedInt, readUnsignedInt, readUnsignedShort, readUnsignedShort, readUTF, skipBytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SWFInputStream
public SWFInputStream(InputStream is)
throws IOException
SWFInputStream
public SWFInputStream(InputStream is,
int version)
throws IOException
SWFInputStream
public SWFInputStream(InputStream is,
SWFSpriteTagSet tagSet,
SWFActionSet actionSet)
throws IOException
readFixed
public float readFixed()
throws IOException
- Read a fixed point value (16.16).
IOException
readRect
public Rectangle2D readRect()
throws IOException
- Read a rectangle from the stream.
IOException
readColor
public Color readColor(boolean alpha)
throws IOException
- Read an RGB value from the stream.
IOException
readMatrix
public AffineTransform readMatrix()
throws IOException
- Read a matrix from the stream.
IOException
readString
public String readString()
throws IOException
- Read a string from the stream.
- Overrides:
readString
in class ByteOrderInputStream
IOException
readLanguageCode
public int readLanguageCode()
throws IOException
IOException
readTagHeader
protected TagHeader readTagHeader()
throws IOException
- Description copied from class:
TaggedInputStream
- Decodes and returns the TagHeader, which includes a TagID and a length
- Specified by:
readTagHeader
in class TaggedInputStream
IOException
readActionHeader
protected ActionHeader readActionHeader()
throws IOException
- Description copied from class:
TaggedInputStream
- Decodes and returns the ActionHeader, which includes an actionCode and a length
- Specified by:
readActionHeader
in class TaggedInputStream
IOException
readHeader
public SWFHeader readHeader()
throws IOException
IOException
getDictionary
public SWFDictionary getDictionary()
setJPEGTable
public void setJPEGTable(byte[] table)
getJPEGTable
public byte[] getJPEGTable()
getVersion
public int getVersion()
Copyright © 2000-2003 FreeHEP, All Rights Reserved.