T - Serializable typepublic class SerializableSerializer<T extends Serializable> extends Object implements AttributeSerializer<T>, SerializerInjected
Serializable objects.| Constructor and Description |
|---|
SerializableSerializer() |
| Modifier and Type | Method and Description |
|---|---|
T |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
void |
setSerializer(Serializer serializer) |
void |
write(WriteBuffer buffer,
T attribute)
Writes the attribute value to the given WriteBuffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, verifyAttributepublic T read(ScanBuffer buffer)
AttributeSerializerIt is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value.
read in interface AttributeSerializer<T extends Serializable>buffer - ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, T attribute)
AttributeSerializerIt is expected that this write operation adjusts the position in the WriteBuffer to after the attribute value.
write in interface AttributeSerializer<T extends Serializable>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferpublic void setSerializer(Serializer serializer)
setSerializer in interface SerializerInjectedCopyright © 2012–2024. All rights reserved.