|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple, efficient, serialization protocol, based on DataInput
and
DataOutput
.
Implementations typically implement a static read(DataInput)
method which constructs a new instance, calls readFields(DataInput)
, and returns the instance.
Method Summary | |
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
write(DataOutput out)
Writes the fields of this object to out . |
Method Detail |
public void write(DataOutput out) throws IOException
out
.
IOException
public void readFields(DataInput in) throws IOException
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |