public class GeoshapeSerializer extends Object implements AttributeSerializer<Geoshape>
Constructor and Description |
---|
GeoshapeSerializer() |
Modifier and Type | Method and Description |
---|---|
Geoshape |
convert(Object value)
Converts the given (not-null) value to the expected data type V.
|
Geoshape |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
void |
verifyAttribute(Geoshape value)
Verifies the given (not-null) attribute value is valid.
|
void |
write(WriteBuffer buffer,
Geoshape attribute)
Writes the attribute value to the given WriteBuffer.
|
public void verifyAttribute(Geoshape value)
AttributeSerializer
IllegalArgumentException
if the value is invalid,
otherwise simply returns.verifyAttribute
in interface AttributeSerializer<Geoshape>
value
- to verifypublic Geoshape convert(Object value)
AttributeSerializer
IllegalArgumentException
if it cannot be converted.convert
in interface AttributeSerializer<Geoshape>
value
- to convertpublic Geoshape read(ScanBuffer buffer)
AttributeSerializer
It is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value.
read
in interface AttributeSerializer<Geoshape>
buffer
- ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, Geoshape attribute)
AttributeSerializer
It is expected that this write operation adjusts the position in the WriteBuffer to after the attribute value.
write
in interface AttributeSerializer<Geoshape>
buffer
- WriteBuffer to write attribute toattribute
- Attribute to write to WriteBufferCopyright © 2012–2023. All rights reserved.