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