public class ShortSerializer extends Object implements OrderPreservingSerializer<Short>
Constructor and Description |
---|
ShortSerializer() |
Modifier and Type | Method and Description |
---|---|
Short |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
Short |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
Short |
readByteOrder(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer assuming it was written in byte order.
|
void |
write(WriteBuffer out,
Short object)
Writes the attribute value to the given WriteBuffer.
|
void |
writeByteOrder(WriteBuffer buffer,
Short attribute)
Writes the attribute value to the given WriteBuffer such that the byte order of the result is equal to the
natural order of the attribute.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
verifyAttribute
public Short read(ScanBuffer buffer)
AttributeSerializer
read
in interface AttributeSerializer<Short>
buffer
- ReadBuffer to read attribute frompublic void write(WriteBuffer out, Short object)
AttributeSerializer
write
in interface AttributeSerializer<Short>
out
- WriteBuffer to write attribute toobject
- Attribute to write to WriteBufferpublic Short readByteOrder(ScanBuffer buffer)
OrderPreservingSerializer
readByteOrder
in interface OrderPreservingSerializer<Short>
buffer
- ReadBuffer to read attribute frompublic void writeByteOrder(WriteBuffer buffer, Short attribute)
OrderPreservingSerializer
writeByteOrder
in interface OrderPreservingSerializer<Short>
buffer
- WriteBuffer to write attribute toattribute
- Attribute to write to WriteBufferpublic Short convert(Object value)
AttributeSerializer
IllegalArgumentException
if it cannot be converted.convert
in interface AttributeSerializer<Short>
value
- to convertCopyright © 2012–2015. All rights reserved.