org.geotools.shapefile
Class PolygonHandler

java.lang.Object
  extended by org.geotools.shapefile.PolygonHandler
All Implemented Interfaces:
ShapeHandler

public class PolygonHandler
extends java.lang.Object
implements ShapeHandler

Wrapper for a Shapefile polygon.


Constructor Summary
PolygonHandler()
           
PolygonHandler(int type)
           
 
Method Summary
 int getLength(com.vividsolutions.jts.geom.Geometry geometry)
           
 int getShapeType()
           
 com.vividsolutions.jts.geom.Geometry read(EndianDataInputStream file, com.vividsolutions.jts.geom.GeometryFactory geometryFactory, int contentLength)
           
 void write(com.vividsolutions.jts.geom.Geometry geometry, EndianDataOutputStream file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonHandler

public PolygonHandler()

PolygonHandler

public PolygonHandler(int type)
               throws InvalidShapefileException
Throws:
InvalidShapefileException
Method Detail

read

public com.vividsolutions.jts.geom.Geometry read(EndianDataInputStream file,
                                                 com.vividsolutions.jts.geom.GeometryFactory geometryFactory,
                                                 int contentLength)
                                          throws java.io.IOException,
                                                 InvalidShapefileException
Specified by:
read in interface ShapeHandler
Throws:
java.io.IOException
InvalidShapefileException

write

public void write(com.vividsolutions.jts.geom.Geometry geometry,
                  EndianDataOutputStream file)
           throws java.io.IOException
Specified by:
write in interface ShapeHandler
Throws:
java.io.IOException

getShapeType

public int getShapeType()
Specified by:
getShapeType in interface ShapeHandler

getLength

public int getLength(com.vividsolutions.jts.geom.Geometry geometry)
Specified by:
getLength in interface ShapeHandler