public class ValueBaseHolder extends Object implements Streamable
ValueBase
that is handled as
Serializable
here.Modifier and Type | Field and Description |
---|---|
Serializable |
value
A stored value of the value base type.
|
Constructor and Description |
---|
ValueBaseHolder()
Create an unitialised instance.
|
ValueBaseHolder(Serializable initial)
Create an instance, initialised into the given value.
|
Modifier and Type | Method and Description |
---|---|
void |
_read(InputStream input)
Read fill in the value field by reading an instance from the
given input stream.
|
TypeCode |
_type()
Get the typecode of the stored instance.
|
void |
_write(OutputStream output)
Write the stored instance to the given output stream.
|
public Serializable value
public ValueBaseHolder()
public ValueBaseHolder(Serializable initial)
initial
- an initial value.public void _read(InputStream input)
ValueBaseHelper
_read
in interface Streamable
input
- a stream to read from.public TypeCode _type()
ValueBaseHelper
_type
in interface Streamable
public void _write(OutputStream output)
ValueBaseHelper
_write
in interface Streamable
output
- a stream to write to.