public class SerializedStringObject extends SerializedObjectBase
classHandle
handle, pool
Constructor and Description |
---|
SerializedStringObject(java.io.DataInputStream din,
SerializedEntityPool pool,
boolean longString)
Constructor reading the string from an input stream.
|
SerializedStringObject(java.lang.String value,
SerializedEntityPool pool)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected byte |
getObjectTagConstant()
Returns the tag code for the object type.
|
java.lang.String |
getValue()
Returns the string value.
|
void |
serialize(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes the entity on an output stream.
|
protected void |
serializeContent(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes the content of the entity (no reference) on an output stream.
|
protected void |
serializeObjectContent(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes the object's content.
|
void |
setValue(java.lang.String value)
Sets the string value
|
getClassHandle, getPlainClassHierarchy
getHandle
public SerializedStringObject(java.lang.String value, SerializedEntityPool pool)
public SerializedStringObject(java.io.DataInputStream din, SerializedEntityPool pool, boolean longString) throws java.io.IOException
longString
- if this is true, the string is a long string.java.io.IOException
public java.lang.String getValue()
public void setValue(java.lang.String value)
public void serialize(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
serialize
in class SerializedEntityBase
java.io.IOException
protected void serializeContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
serializeContent
in class SerializedObjectBase
java.io.IOException
protected byte getObjectTagConstant()
getObjectTagConstant
in class SerializedObjectBase
protected void serializeObjectContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer)
serializeObjectContent
in class SerializedObjectBase