V
- The type of the elements of the list.public abstract class WriteableListBinary<V> extends Object implements WriteableBinary
List
that is writeable.Constructor and Description |
---|
WriteableListBinary(List<V> list)
Construct with the given list.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryHeader()
Header for binary output.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
protected abstract void |
writeValue(V v,
DataOutput out) |
public WriteableListBinary(List<V> list)
list
- The list.public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to outprotected abstract void writeValue(V v, DataOutput out) throws IOException
IOException
public byte[] binaryHeader()
WriteableBinary
binaryHeader
in interface WriteableBinary