|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.image.JPEGEncodingTable
public final class JPEGEncodingTable
JPEGEncodingTable defines the Huffman encoding table for JPEG images.
The encoding table is shared between all images defined using the DefineJPEGImage class so there should only be one JPEGEncodingTable object defined in a movie.
The JPEGEncodingTable class is not essential to define JPEG encoded images in a movie using the DefineJPEGImage class. You can still display an image if it contains the encoding table. There is no need to separate it and add it to a JPEGEncodingTable object, particularly since different images contain different encoding tables.
DefineJPEGImage
Constructor Summary | |
---|---|
JPEGEncodingTable(byte[] bytes)
Creates a JPEGEncodingTable object with the encoding table data. |
|
JPEGEncodingTable(JPEGEncodingTable object)
Creates and initialises a JPEGEncodingTable object using the values copied from another JPEGEncodingTable object. |
|
JPEGEncodingTable(SWFDecoder coder)
Creates and initialises a JPEGEncodingTable object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
JPEGEncodingTable |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
byte[] |
getTable()
Get a copy of the encoding table. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setTable(byte[] bytes)
Sets the encoding table. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JPEGEncodingTable(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public JPEGEncodingTable(byte[] bytes)
bytes
- a list of bytes contains the data for the encoding table.
Must not be null.public JPEGEncodingTable(JPEGEncodingTable object)
object
- a JPEGEncodingTable object from which the values will be
copied.Method Detail |
---|
public byte[] getTable()
public void setTable(byte[] bytes)
bytes
- a list of bytes contains the data for the encoding table.
Must not be null or zero length.public JPEGEncodingTable copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder, Context context) throws IOException
encode
in interface SWFEncodeable
coder
- an SWFEncoder object.context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException
- if an error occurs while encoding the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |