Package org.geotools.geojson.feature
Class FeatureHandler
- Object
-
- DelegatingHandler<SimpleFeature>
-
- FeatureHandler
-
- All Implemented Interfaces:
IContentHandler<SimpleFeature>
,ContentHandler
public class FeatureHandler extends DelegatingHandler<SimpleFeature>
-
-
Field Summary
-
Fields inherited from class DelegatingHandler
delegate, handlers, NULL, NULL_LIST, UNINITIALIZED
-
-
Constructor Summary
Constructors Constructor Description FeatureHandler()
FeatureHandler(SimpleFeatureBuilder builder, AttributeIO attio)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
endArray()
boolean
endObject()
CoordinateReferenceSystem
getCRS()
SimpleFeature
getValue()
void
init()
boolean
primitive(Object value)
void
setCRS(CoordinateReferenceSystem crs)
boolean
startArray()
boolean
startObject()
boolean
startObjectEntry(String key)
-
Methods inherited from class DelegatingHandler
createDelegate, endJSON, endObjectEntry, getDelegate, lookupDelegate, startJSON
-
-
-
-
Constructor Detail
-
FeatureHandler
public FeatureHandler()
-
FeatureHandler
public FeatureHandler(SimpleFeatureBuilder builder, AttributeIO attio)
-
-
Method Detail
-
startObject
public boolean startObject() throws ParseException, IOException
- Specified by:
startObject
in interfaceContentHandler
- Overrides:
startObject
in classDelegatingHandler<SimpleFeature>
- Throws:
ParseException
IOException
-
startObjectEntry
public boolean startObjectEntry(String key) throws ParseException, IOException
- Specified by:
startObjectEntry
in interfaceContentHandler
- Overrides:
startObjectEntry
in classDelegatingHandler<SimpleFeature>
- Throws:
ParseException
IOException
-
startArray
public boolean startArray() throws ParseException, IOException
- Specified by:
startArray
in interfaceContentHandler
- Overrides:
startArray
in classDelegatingHandler<SimpleFeature>
- Throws:
ParseException
IOException
-
endArray
public boolean endArray() throws ParseException, IOException
- Specified by:
endArray
in interfaceContentHandler
- Overrides:
endArray
in classDelegatingHandler<SimpleFeature>
- Throws:
ParseException
IOException
-
endObject
public boolean endObject() throws ParseException, IOException
- Specified by:
endObject
in interfaceContentHandler
- Overrides:
endObject
in classDelegatingHandler<SimpleFeature>
- Throws:
ParseException
IOException
-
primitive
public boolean primitive(Object value) throws ParseException, IOException
- Specified by:
primitive
in interfaceContentHandler
- Overrides:
primitive
in classDelegatingHandler<SimpleFeature>
- Throws:
ParseException
IOException
-
getValue
public SimpleFeature getValue()
- Specified by:
getValue
in interfaceIContentHandler<SimpleFeature>
- Overrides:
getValue
in classDelegatingHandler<SimpleFeature>
-
getCRS
public CoordinateReferenceSystem getCRS()
-
setCRS
public void setCRS(CoordinateReferenceSystem crs)
-
init
public void init()
-
-