public static class SimpleClassLabel.Serializer extends Object implements ByteBufferSerializer<SimpleClassLabel>
Constructor and Description |
---|
SimpleClassLabel.Serializer() |
Modifier and Type | Method and Description |
---|---|
SimpleClassLabel |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk)
|
int |
getByteSize(SimpleClassLabel object)
Get the size of the object in bytes.
|
void |
toByteBuffer(ByteBuffer buffer,
SimpleClassLabel object)
Serialize the object to a byte array (e.g. disk)
|
public SimpleClassLabel fromByteBuffer(ByteBuffer buffer) throws IOException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<SimpleClassLabel>
buffer
- Data array to processIOException
- on IO errorspublic void toByteBuffer(ByteBuffer buffer, SimpleClassLabel object) throws IOException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<SimpleClassLabel>
buffer
- Buffer to serialize toobject
- Object to serializeIOException
- on IO errorspublic int getByteSize(SimpleClassLabel object) throws IOException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<SimpleClassLabel>
object
- Object to serializeIOException
- on IO errorsCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.