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