|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--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
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.
Field Summary |
Fields inherited from class org.freehep.util.io.TaggedInputStream |
actionSet, tagSet |
Fields inherited from class org.freehep.util.io.ByteOrderInputStream |
little |
Fields inherited from class org.freehep.util.io.BitInputStream |
BIT_MASK, FIELD_MASK, in, MASK_SIZE, ONES, ZERO |
Fields inherited from interface org.freehep.graphicsio.swf.SWFConstants |
CONTROL, DEFAULT_VERSION, DEFINITION, TWIPS |
Constructor Summary | |
SWFInputStream(InputStream is)
|
|
SWFInputStream(InputStream is,
int version)
|
|
SWFInputStream(InputStream is,
SWFSpriteTagSet tagSet,
SWFActionSet actionSet)
|
Method Summary | |
SWFDictionary |
getDictionary()
|
byte[] |
getJPEGTable()
|
int |
getVersion()
|
protected ActionHeader |
readActionHeader()
Decodes and returns the ActionHeader, which includes an actionCode and a length |
Color |
readColor(boolean alpha)
Read an RGB value from the stream. |
float |
readFixed()
Read a fixed point value (16.16). |
SWFHeader |
readHeader()
|
AffineTransform |
readMatrix()
Read a matrix from the stream. |
Rectangle2D |
readRect()
Read a rectangle from the stream. |
String |
readString()
Read a string from the stream. |
protected TagHeader |
readTagHeader()
Decodes and returns the TagHeader, which includes a TagID and a length |
void |
setJPEGTable(byte[] table)
|
Methods inherited from class org.freehep.util.io.TaggedInputStream |
addAction, addTag, readAction, readTag |
Methods inherited from class org.freehep.util.io.ByteCountInputStream |
getLength, popBuffer, pushBuffer, read |
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 org.freehep.util.io.BitInputStream |
byteAlign, fetchByte, readBitFlag, readFBits, readSBits, readUBits |
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SWFInputStream(InputStream is) throws IOException
public SWFInputStream(InputStream is, int version) throws IOException
public SWFInputStream(InputStream is, SWFSpriteTagSet tagSet, SWFActionSet actionSet) throws IOException
Method Detail |
public float readFixed() throws IOException
IOException
public Rectangle2D readRect() throws IOException
IOException
public Color readColor(boolean alpha) throws IOException
IOException
public AffineTransform readMatrix() throws IOException
IOException
public String readString() throws IOException
readString
in class ByteOrderInputStream
IOException
protected TagHeader readTagHeader() throws IOException
TaggedInputStream
readTagHeader
in class TaggedInputStream
IOException
protected ActionHeader readActionHeader() throws IOException
TaggedInputStream
readActionHeader
in class TaggedInputStream
IOException
public SWFHeader readHeader() throws IOException
IOException
public SWFDictionary getDictionary()
public void setJPEGTable(byte[] table)
public byte[] getJPEGTable()
public int getVersion()
|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |