public interface Writable
DataInput and DataOutput.| Modifier and Type | Method and Description |
|---|---|
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from
in. |
void |
write(java.io.DataOutput out)
Serialize the fields of this object to
out. |
void write(java.io.DataOutput out)
throws java.io.IOException
out.out - DataOutput to serialize this object into.java.io.IOException - if I/O error occursvoid readFields(java.io.DataInput in)
throws java.io.IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deserialize this object from.java.io.IOException - if I/O error occurs