Modifier and Type
Field and Description
Methods inherited from class
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int getLength(
Get the length of the given geometry Object in
bytes not 16-bit words. This is easier
to keep track of, since the ByteBuffer deals with bytes. Do not include the 8 bytes of
geometry - The geometry to analyze.
Returns: The number of
bytes the shape will take up.
Object read( ByteBuffer buffer,
Read a geometry from the ByteBuffer. The buffer's position, byteOrder, and limit are set to
that which is needed. The record has been read as well as the shape type integer. The handler
need not worry about reading unused information as the ShapefileReader will correctly adjust
the buffer position after this call.
buffer - The ByteBuffer to read from.
Returns: A geometry object.
public void write(
Write the geometry into the ByteBuffer. The position, byteOrder, and limit are all set. The
handler is not responsible for writing the record or shape type integer.
buffer - The ByteBuffer to write to.
geometry - The geometry to write.
Copyright © 1996–2018 Geotools. All rights reserved.