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