|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.MovieData
public final class MovieData
MovieData is used to store one or more MovieTags which already have been encoded for writing to a Flash file.
You can use this class to either selectively decode the tags in a movie, so tags that are not of interest can be left encoded or to selectively encode tags that will not change when generating Flash files from a template.
Constructor Summary | |
---|---|
MovieData(byte[] bytes)
Create a MovieData object containing a block of encoded MovieTag objects. |
|
MovieData(MovieData object)
Creates and initialises a MovieData object using the values copied from another MovieData object. |
Method Summary | |
---|---|
MovieData |
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 the encoded MovieTag objects. |
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 MovieData(byte[] bytes)
bytes
- the encoded MovieTag objects.public MovieData(MovieData object)
object
- a MovieData object from which the values will be
copied.Method Detail |
---|
public byte[] getData()
public MovieData 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 |