|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.util.QTByteObject
Provides a representation of the native data structure as a byte array. The class implements the Serializable interface and can thus be serialized.
However the byte[] member is marked as transient because typically a QTByteObject is used to contain objects that have fields, such as shorts, ints, that are larger than bytes. Moving these objects from big to little to big endian run-time architectures can cause problems if the endian issues of these members are not taken care of by the particular class of the object that is being serialized. Thus, any subclass of QTByteObject that is to be serialized defines custome read and write object methods that will ensure that the serialized data that is written out is in big endian format, and if required will be flipped back to native format when read in.
Fields inherited from interface quicktime.jdirect.PrimitivesLib |
JDirect_MacOSX, libraryInstance |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if the two objects have the same value. |
static QTByteObject |
fromArray(byte[] ar)
This call will return a QTByteObject which becomes a proxy for the specified byte array. |
byte[] |
getBytes()
Returns the byte array containing the packed native object. |
int |
getSize()
Returns the size of the represented native object. |
java.lang.String |
toString()
Returns a string representation of this object |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static QTByteObject fromArray(byte[] ar)
ar
- the byte array to representpublic final byte[] getBytes()
public int getSize()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |