|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSTransformObject
com.flagstone.transform.FSMovieObject
com.flagstone.transform.FSUnknownObject
public class FSUnknownObject
FSUnknownObject is used to represent any data structure decoded from a Flash file that is currently not supported by the framework.
This allows Flash files to be parsed, processed and encoded without affecting any of the data structures not directly supported.
Attributes | |
---|---|
type | Identifies the data structure when it is encoded. Read-only. |
data | The encoded bytes that make up the body of the data structure. |
The object provides direct access to the encoded data of the data structure offering the possibility for Transform to encode and decode tags that are not directly supported in the current release of the package. However a detailed knowledge of how the data structure is encoded and decoded is required.
Field Summary |
---|
Constructor Summary | |
---|---|
FSUnknownObject(FSCoder coder)
Construct an FSUnknownObject object, initialising it with values decoded from an encoded object. |
|
FSUnknownObject(FSUnknownObject obj)
Constructs an FSUnknownObject object by copying values from an existing object. |
|
FSUnknownObject(int aType,
byte[] bytes)
Constructs an FSUnknownObject object of the specified type with the encoded Flash data. |
Method Summary | |
---|---|
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
AppendDescription is used to present a string description of the object including all nested objects up to a specified depth. |
java.lang.Object |
clone()
Creates a deep copy of the entire object. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
byte[] |
getData()
Gets the encoded data for the tag. |
int |
length(FSCoder coder)
|
void |
setData(byte[] bytes)
Sets the encoded data for the tag. |
Methods inherited from class com.flagstone.transform.FSMovieObject |
---|
getType |
Methods inherited from class com.flagstone.transform.FSTransformObject |
---|
name, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSUnknownObject(FSCoder coder)
coder
- an FSCoder containing the binary data.public FSUnknownObject(int aType, byte[] bytes)
aType
- the code identifying the tag type.bytes
- the encoded data for the tag.public FSUnknownObject(FSUnknownObject obj)
obj
- an FSUnknownObject object.Method Detail |
---|
public byte[] getData()
public void setData(byte[] bytes)
bytes
- the encoded data for the tag.public java.lang.Object clone()
FSTransformObject
clone
in class FSTransformObject
public boolean equals(java.lang.Object anObject)
FSMovieObject
equals
in class FSMovieObject
public void appendDescription(java.lang.StringBuffer buffer, int depth)
FSTransformObject
appendDescription
in class FSMovieObject
buffer
- a StringBuffer to which the description of each object is
appended.depth
- the maximum level of nesting up to which objects will be
displayed.public int length(FSCoder coder)
length
in class FSMovieObject
public void encode(FSCoder coder)
encode
in class FSMovieObject
public void decode(FSCoder coder)
decode
in class FSMovieObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |