public interface Writable
| Modifier and Type | Method and Description |
|---|---|
void |
readFields(DataInput in,
Document doc)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
void write(DataOutput out) throws IOException
out.out - DataOuput to serialize this object into.IOExceptionvoid readFields(DataInput in, Document doc) throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.IOExceptionCopyright © 2017. All rights reserved.