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
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to outprotected abstract void writeValue(V v, DataOutput out) throws IOException
IOExceptionpublic byte[] binaryHeader()
WriteableBinarybinaryHeader in interface WriteableBinary