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
ByteBufferSerializerfromByteBuffer 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
ByteBufferSerializertoByteBuffer 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
ByteBufferSerializergetByteSize in interface ByteBufferSerializer<SimpleClassLabel>object - Object to serializejava.io.IOException - on IO errorsCopyright © 2019 ELKI Development Team. License information.