@Public
public interface IOReadableWritable
When implementing this Interface make sure that the implementing class has a default (zero-argument) constructor!
| Modifier and Type | Method and Description |
|---|---|
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
void write(DataOutputView out) throws IOException
out - the output view to receive the data.IOException - thrown if any error occurs while writing to the output streamvoid read(DataInputView in) throws IOException
in - the input view to read the data fromIOException - thrown if any error occurs while reading from the input streamCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.