public class SerializedStringObject extends SerializedObjectBase
classHandlehandle, 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, getPlainClassHierarchygetHandlepublic 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.IOExceptionpublic 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 SerializedEntityBasejava.io.IOExceptionprotected void serializeContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
serializeContent in class SerializedObjectBasejava.io.IOExceptionprotected byte getObjectTagConstant()
getObjectTagConstant in class SerializedObjectBaseprotected void serializeObjectContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer)
serializeObjectContent in class SerializedObjectBase