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