public abstract class SerializedComplexFieldBase extends SerializedFieldBase
| Modifier | Constructor and Description |
|---|---|
protected |
SerializedComplexFieldBase(java.lang.String fieldName,
SerializedEntityParser parser)
Constructor.
|
protected |
SerializedComplexFieldBase(java.lang.String fieldName,
java.lang.String detailedType)
Constructor with explicit type construction.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDetailedType()
Returns the detailed type (may be null).
|
java.lang.Object |
readValue(java.io.DataInputStream din,
SerializedEntityParser parser)
Reads the value for a field from the given stream.
|
void |
serialize(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes this field.
|
void |
writeValue(java.lang.Object value,
SerializedEntityPool pool,
java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Writes the given field value to the output stream using the correct
format for this field.
|
getName, getTypeCode, setNameprotected SerializedComplexFieldBase(java.lang.String fieldName, SerializedEntityParser parser) throws java.io.IOException
parser - the parser used for reading the detailedType. If this
is null (which can be used to construct artificial fields not
resulting from a serialized stream), the detailedType
will also be null.java.io.IOExceptionprotected SerializedComplexFieldBase(java.lang.String fieldName, java.lang.String detailedType)
public java.lang.String getDetailedType()
public void serialize(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
serialize in class SerializedFieldBaseserializer - the serializer is used by sub classes.java.io.IOExceptionpublic java.lang.Object readValue(java.io.DataInputStream din, SerializedEntityParser parser) throws java.io.IOException
readValue in class SerializedFieldBasejava.io.IOExceptionpublic void writeValue(java.lang.Object value, SerializedEntityPool pool, java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
writeValue in class SerializedFieldBasejava.io.IOException