public interface Streamable
Serializable,
except that the serialization is handled explicitely by the object.| Modifier and Type | Method and Description |
|---|---|
void |
read(DataInput in)
Reads the object's contents from the given
DataInput. |
int |
size()
Returns the size in bytes of the object's serialized form.
|
void |
write(DataOutput out)
Serializes the object into the given
DataOutput, |
int size()
void write(DataOutput out) throws IOException
DataOutput,out - A DataOutput into which the object is to be serialized.IOExceptionvoid read(DataInput in) throws IOException
DataInput.in - A DataInput from which the object's contents are to be read.IOException