|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transportable
Interface defining a transportable class.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |