All Packages Class Hierarchy This Package Previous Next Index
Class PREDATOR.ADT.DataObject
java.lang.Object
|
+----PREDATOR.ADT.DataObject
- public class DataObject
- extends Object
Encapsulates all necessary object data for ADT display, querying,
etc. For instance, an integer's object data will contain only its
value. An image's object data will contain OID information, and
a handle on an in-memory version of the image.
All data members of an ObjectData class should be declared either
public or protected so that subclasses can access the underlying
data. In that sense, this class is a "client-side" copy of the
server's binary data.
- See Also:
- CachingObject, MIMETypeObject, DisplayObject, CallbackObject
-
bytes
- The binary format of this object.
-
COMPRESSED
- Set if this object is in a compressed format.
-
IN_FIELD
- Set if this object's entire value is in-field.
-
LITTLE_ENDIAN
- Set if this object is in little-endian format.
-
NULL
- Set if this object is a null value
-
SUSPENDED
- Set if this object is a suspended value.
-
DataObject()
-
-
getBytes()
- Gets the binary form of this object.
-
is(byte)
- Checks to see if a flag is set in the status byte of the object.
-
setBytes(byte[])
- Every data object is stored as a contiguous sequence of bytes at
the server.
-
toString(ADTMetaInfo)
- Provides a textual version of this object suitable for user-display.
NULL
public static final byte NULL
- Set if this object is a null value
SUSPENDED
public static final byte SUSPENDED
- Set if this object is a suspended value. If this is set, the
object's suspended computation id is valid; otherwise, it is not.
IN_FIELD
public static final byte IN_FIELD
- Set if this object's entire value is in-field.
COMPRESSED
public static final byte COMPRESSED
- Set if this object is in a compressed format.
LITTLE_ENDIAN
public static final byte LITTLE_ENDIAN
- Set if this object is in little-endian format.
bytes
protected byte bytes[]
- The binary format of this object.
DataObject
public DataObject()
is
public final boolean is(byte flag)
- Checks to see if a flag is set in the status byte of the object.
The status byte is the first byte of every object.
setBytes
public void setBytes(byte bytes[])
- Every data object is stored as a contiguous sequence of bytes at
the server. This function assigns those bytes to the object.
- Parameters:
- bytes - The binary form of this object.
getBytes
public byte[] getBytes()
- Gets the binary form of this object.
toString
public String toString(ADTMetaInfo MetaInfo)
- Provides a textual version of this object suitable for user-display.
- Parameters:
- MetaInfo - The meta-info for this object
- Returns:
- A textual version of this object
All Packages Class Hierarchy This Package Previous Next Index