Package org.geotools.geojson.geom
Class GeometryHandlerBase<G extends Geometry>
- Object
-
- HandlerBase
-
- GeometryHandlerBase<G>
-
- All Implemented Interfaces:
IContentHandler<G>,ContentHandler
- Direct Known Subclasses:
LineHandler,MultiLineHandler,MultiPointHandler,MultiPolygonHandler,PointHandler,PolygonHandler
public class GeometryHandlerBase<G extends Geometry> extends HandlerBase implements IContentHandler<G>
-
-
Constructor Summary
Constructors Constructor Description GeometryHandlerBase(GeometryFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Coordinatecoordinate(List ordinates)protected Coordinate[]coordinates(List<Coordinate> coordinates)GgetValue()booleanprimitive(Object value)-
Methods inherited from class HandlerBase
endArray, endJSON, endObject, endObjectEntry, startArray, startJSON, startObject, startObjectEntry
-
-
-
-
Field Detail
-
factory
protected GeometryFactory factory
-
-
Constructor Detail
-
GeometryHandlerBase
public GeometryHandlerBase(GeometryFactory factory)
-
-
Method Detail
-
getValue
public G getValue()
- Specified by:
getValuein interfaceIContentHandler<G extends Geometry>
-
coordinate
protected Coordinate coordinate(List ordinates) throws ParseException
- Throws:
ParseException
-
coordinates
protected Coordinate[] coordinates(List<Coordinate> coordinates)
-
primitive
public boolean primitive(Object value) throws ParseException, IOException
- Specified by:
primitivein interfaceContentHandler- Overrides:
primitivein classHandlerBase- Throws:
ParseExceptionIOException
-
-