|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ShapeHandler defines what is needed to construct and persist geometries based upon the shapefile specification.
Method Summary | |
int |
getLength(java.lang.Object geometry)
Get the length of the given geometry Object in bytes not 16-bit words. |
ShapeType |
getShapeType()
Get the ShapeType of this handler. |
java.lang.Object |
read(java.nio.ByteBuffer buffer,
ShapeType type)
Read a geometry from the ByteBuffer. |
void |
write(java.nio.ByteBuffer buffer,
java.lang.Object geometry)
Write the geometry into the ByteBuffer. |
Method Detail |
public ShapeType getShapeType()
public java.lang.Object read(java.nio.ByteBuffer buffer, ShapeType type)
buffer
- The ByteBuffer to read from.
public void write(java.nio.ByteBuffer buffer, java.lang.Object geometry)
buffer
- The ByteBuffer to write to.geometry
- The geometry to write.public int getLength(java.lang.Object geometry)
geometry
- The geometry to analyze.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |