public static class LabelList.Serializer extends java.lang.Object implements ByteBufferSerializer<LabelList>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
LabelList |
fromByteBuffer(java.nio.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(java.nio.ByteBuffer buffer,
LabelList object)
Serialize the object to a byte array (e.g. disk)
|
public LabelList fromByteBuffer(java.nio.ByteBuffer buffer) throws java.io.IOException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<LabelList>
buffer
- Data array to processjava.io.IOException
- on IO errorspublic void toByteBuffer(java.nio.ByteBuffer buffer, LabelList object) throws java.io.IOException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<LabelList>
buffer
- Buffer to serialize toobject
- Object to serializejava.io.IOException
- on IO errorspublic int getByteSize(LabelList object) throws java.io.IOException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<LabelList>
object
- Object to serializejava.io.IOException
- on IO errorsCopyright © 2019 ELKI Development Team. License information.