public class SerializedFloatField extends SerializedPrimitiveFieldBase
Modifier and Type | Field and Description |
---|---|
static char |
TYPE_CODE
The type code.
|
Constructor and Description |
---|
SerializedFloatField(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, fromTypeCode
getName, serialize, setName
public static final char TYPE_CODE
public SerializedFloatField(java.lang.String name)
public java.lang.Object readValue(java.io.DataInputStream din, SerializedEntityParser parser) throws java.io.IOException
readValue
in class SerializedFieldBase
java.io.IOException
public void writeValue(java.lang.Object value, SerializedEntityPool pool, java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
writeValue
in class SerializedFieldBase
java.io.IOException
protected char getTypeCode()
getTypeCode
in class SerializedFieldBase