|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMultiLineHandler
public class MultiLineHandler
The default JTS handler for shapefile. Currently uses the default JTS GeometryFactory, since it doesn't seem to matter.
trunk/gt/modules
(gt-modules.jar
) (Maven report) (SVN head)Constructor Summary | |
---|---|
MultiLineHandler()
Create a MultiLineHandler for ShapeType.ARC |
|
MultiLineHandler(ShapeType type)
Create a MultiLineHandler for one of: ShapeType.ARC,ShapeType.ARCM,ShapeType.ARCZ |
Method Summary | |
---|---|
int |
getLength(Object geometry)
Get the length of the given geometry Object in bytes not 16-bit words. |
ShapeType |
getShapeType()
Get the type of shape stored (ShapeType.ARC,ShapeType.ARCM,ShapeType.ARCZ) |
Object |
read(ByteBuffer buffer,
ShapeType type)
Read a geometry from the ByteBuffer. |
Object |
readOld(ByteBuffer buffer,
ShapeType type)
|
void |
write(ByteBuffer buffer,
Object geometry)
Write the geometry into the ByteBuffer. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiLineHandler()
public MultiLineHandler(ShapeType type) throws ShapefileException
type
- The ShapeType to use.
ShapefileException
- If the ShapeType is not correct (see constructor).Method Detail |
---|
public ShapeType getShapeType()
getShapeType
in interface ShapeHandler
public int getLength(Object geometry)
ShapeHandler
getLength
in interface ShapeHandler
geometry
- The geometry to analyze.
public Object readOld(ByteBuffer buffer, ShapeType type)
public Object read(ByteBuffer buffer, ShapeType type)
ShapeHandler
read
in interface ShapeHandler
buffer
- The ByteBuffer to read from.
public void write(ByteBuffer buffer, Object geometry)
ShapeHandler
write
in interface ShapeHandler
buffer
- The ByteBuffer to write to.geometry
- The geometry to write.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |