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 Coordinate
coordinate(List ordinates)
protected Coordinate[]
coordinates(List<Coordinate> coordinates)
G
getValue()
boolean
primitive(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:
getValue
in 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:
primitive
in interfaceContentHandler
- Overrides:
primitive
in classHandlerBase
- Throws:
ParseException
IOException
-
-