public static class LabelList.Serializer extends Object implements ByteBufferSerializer<LabelList>
Constructor and Description |
---|
LabelList.Serializer() |
Modifier and Type | Method and Description |
---|---|
LabelList |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk)
|
int |
getByteSize(LabelList object)
Get the size of the object in bytes.
|
void |
toByteBuffer(ByteBuffer buffer,
LabelList object)
Serialize the object to a byte array (e.g. disk)
|
public LabelList fromByteBuffer(ByteBuffer buffer) throws IOException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<LabelList>
buffer
- Data array to processIOException
- on IO errorspublic void toByteBuffer(ByteBuffer buffer, LabelList object) throws IOException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<LabelList>
buffer
- Buffer to serialize toobject
- Object to serializeIOException
- on IO errorspublic int getByteSize(LabelList object) throws IOException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<LabelList>
object
- Object to serializeIOException
- on IO errors