V - The type of the elements of the list.public abstract class ReadableListBinary<V> extends Object implements ReadableBinary
List that is readable.| Constructor and Description |
|---|
ReadableListBinary(List<V> list)
Construct with a backing list
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
protected abstract V |
readValue(DataInput in) |
public ReadableListBinary(List<V> list)
list - the backing listpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputprotected abstract V readValue(DataInput in) throws IOException
IOExceptionpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinary