public class SerializedLongField extends SerializedPrimitiveFieldBase
| Modifier and Type | Field and Description |
|---|---|
static char |
TYPE_CODE
The type code.
|
| Constructor and Description |
|---|
SerializedLongField(java.lang.String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected char |
getTypeCode()
Returns the type code for the king of field.
|
java.lang.Object |
readValue(java.io.DataInputStream din,
SerializedEntityParser parser)
Reads the value for a field from the given stream.
|
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.
|
ensureType, fromTypeCodegetName, serialize, setNamepublic static final char TYPE_CODE
public SerializedLongField(java.lang.String name)
public 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.IOExceptionprotected char getTypeCode()
getTypeCode in class SerializedFieldBase