
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
ByteBufferSerializerfromByteBuffer in interface ByteBufferSerializer<SimpleClassLabel>buffer - Data array to processIOException - on IO errorspublic void toByteBuffer(ByteBuffer buffer, SimpleClassLabel object) throws IOException
ByteBufferSerializertoByteBuffer in interface ByteBufferSerializer<SimpleClassLabel>buffer - Buffer to serialize toobject - Object to serializeIOException - on IO errorspublic int getByteSize(SimpleClassLabel object) throws IOException
ByteBufferSerializergetByteSize in interface ByteBufferSerializer<SimpleClassLabel>object - Object to serializeIOException - on IO errors