public interface Transportable
| Modifier and Type | Method and Description |
|---|---|
int |
getOutputLength()
Returns the number of bytes that will
be written by
writeTo(DataOutput). |
void |
readFrom(DataInput din)
Reads this Transportable from the given
DataInput.
|
void |
writeTo(DataOutput dout)
Writes this Transportable to the
given DataOutput.
|
int getOutputLength()
writeTo(DataOutput).void writeTo(DataOutput dout) throws IOException
dout - the DataOutput to write to.IOException - if an I/O error occurs.void readFrom(DataInput din) throws IOException
din - the DataInput to read from.IOException - if an I/O error occurs or the data is invalid.Copyright © 2017. All rights reserved.