public class SerializedObject extends SerializedObjectBase
classHandle
handle, pool
Constructor and Description |
---|
SerializedObject(java.io.DataInputStream din,
SerializedEntityPool pool,
SerializedEntityParser parser,
int classHandle)
Constructor.
|
SerializedObject(int classHandle,
java.util.List<SerializedClassValues> fieldSets,
SerializedEntityPool pool)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SerializedClassValues |
getFieldSet(int index)
Returns field sets of given index.
|
int |
getFieldSetCount()
Returns number of field sets.
|
java.lang.Object |
getFieldValue(java.lang.String name)
Return the value object for the field with the given name.
|
protected byte |
getObjectTagConstant()
Returns the tag code for the object type.
|
void |
removeFieldValue(java.lang.String name)
Removes the value object for the field with the given name.
|
protected void |
serializeObjectContent(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes the object's content.
|
void |
setFieldValue(java.lang.String name,
java.lang.Object value)
Sets the value object for the field with the given name.
|
java.lang.String |
toString() |
getClassHandle, getPlainClassHierarchy, serializeContent
getHandle, serialize
public SerializedObject(java.io.DataInputStream din, SerializedEntityPool pool, SerializedEntityParser parser, int classHandle) throws java.io.IOException
java.io.IOException
public SerializedObject(int classHandle, java.util.List<SerializedClassValues> fieldSets, SerializedEntityPool pool)
protected byte getObjectTagConstant()
getObjectTagConstant
in class SerializedObjectBase
protected void serializeObjectContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
serializeObjectContent
in class SerializedObjectBase
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getFieldValue(java.lang.String name) throws java.io.IOException
java.io.IOException
public void setFieldValue(java.lang.String name, java.lang.Object value) throws java.io.IOException
java.io.IOException
public void removeFieldValue(java.lang.String name) throws java.io.IOException
java.io.IOException
public int getFieldSetCount()
public SerializedClassValues getFieldSet(int index)