V
- The type of the elements of the list.public abstract class WriteableArrayBinary<V> extends Object implements WriteableBinary
Constructor and Description |
---|
WriteableArrayBinary(V[] list)
Construct with the given array.
|
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 WriteableArrayBinary(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