|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.MovieObject
public final class MovieObject
MovieObject is used to represent any object decoded from a Movie that is not directly supported by Transform.
This allow a certain amount of forward compatibility where file which use a version of Flash greater than the one supported by Transform can be decoded and encoded.
| Constructor Summary | |
|---|---|
MovieObject(int aType,
byte[] bytes)
Creates and initialises a MovieObject object using the specified type and encoded data. |
|
MovieObject(MovieObject object)
Creates and initialises a MovieObject object using the values copied from another MovieObject object. |
|
MovieObject(SWFDecoder coder)
Creates and initialises a MovieObject object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
MovieObject |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
byte[] |
getData()
Get a copy of the encoded data for the movie tag object. |
int |
getType()
Get the type that identifies the object when it is encoded. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MovieObject(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public MovieObject(int aType,
byte[] bytes)
aType - the type that identifies the MovieTag when it is encoded.bytes - the encoded bytes that form the body of the object.public MovieObject(MovieObject object)
object - a MovieObject object from which the values will be
copied.| Method Detail |
|---|
public int getType()
public byte[] getData()
public MovieObject copy()
copy in interface Copyable<MovieTag>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - 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 SWFEncodeablecoder - 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 | |||||||||