|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.SerialNumber
public final class SerialNumber
SerialNumber is used to add a user-defined serial number into a Flash file.
Constructor Summary | |
---|---|
SerialNumber(SerialNumber object)
Creates and initialises a SerialNumber object using the number copied from another SerialNumber object. |
|
SerialNumber(String aString)
Creates a SerialNumber action with the specified string. |
|
SerialNumber(SWFDecoder coder)
Creates and initialises a SerialNumber object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
SerialNumber |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
String |
getNumber()
Get the serial number. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setNumber(String aString)
Sets the serial number. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SerialNumber(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public SerialNumber(String aString)
aString
- an arbitrary string containing the serial number. Must not be
null.public SerialNumber(SerialNumber object)
object
- a SerialNumber object from which the serial number will be
copied.Method Detail |
---|
public String getNumber()
public void setNumber(String aString)
aString
- an arbitrary string containing the serial number. Must not be
null.public SerialNumber 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 |