public class ByteSerializer extends Object implements OrderPreservingSerializer<Byte>
Constructor and Description |
---|
ByteSerializer() |
Modifier and Type | Method and Description |
---|---|
Byte |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
Byte |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
Byte |
readByteOrder(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer assuming it was written in byte order.
|
void |
write(WriteBuffer out,
Byte object)
Writes the attribute value to the given WriteBuffer.
|
void |
writeByteOrder(WriteBuffer buffer,
Byte 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 Byte read(ScanBuffer buffer)
AttributeSerializer
read
in interface AttributeSerializer<Byte>
buffer
- ReadBuffer to read attribute frompublic void write(WriteBuffer out, Byte object)
AttributeSerializer
write
in interface AttributeSerializer<Byte>
out
- WriteBuffer to write attribute toobject
- Attribute to write to WriteBufferpublic Byte readByteOrder(ScanBuffer buffer)
OrderPreservingSerializer
readByteOrder
in interface OrderPreservingSerializer<Byte>
buffer
- ReadBuffer to read attribute frompublic void writeByteOrder(WriteBuffer buffer, Byte attribute)
OrderPreservingSerializer
writeByteOrder
in interface OrderPreservingSerializer<Byte>
buffer
- WriteBuffer to write attribute toattribute
- Attribute to write to WriteBufferpublic Byte convert(Object value)
AttributeSerializer
IllegalArgumentException
if it cannot be converted.convert
in interface AttributeSerializer<Byte>
value
- to convertCopyright © 2012–2017. All rights reserved.