Package org.geotools.geojson.feature
Class FeatureCollectionHandler
- Object
-
- DelegatingHandler<SimpleFeature>
-
- FeatureCollectionHandler
-
- All Implemented Interfaces:
IFeatureCollectionHandler
,IContentHandler<SimpleFeature>
,ContentHandler
public class FeatureCollectionHandler extends DelegatingHandler<SimpleFeature> implements IFeatureCollectionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Integer>
stack
-
Fields inherited from class DelegatingHandler
delegate, handlers, NULL, NULL_LIST, UNINITIALIZED
-
-
Constructor Summary
Constructors Constructor Description FeatureCollectionHandler()
FeatureCollectionHandler(SimpleFeatureType featureType, AttributeIO attio)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
endArray()
void
endJSON()
boolean
endObject()
CoordinateReferenceSystem
getCRS()
SimpleFeature
getValue()
boolean
startArray()
boolean
startObjectEntry(String key)
-
Methods inherited from class DelegatingHandler
createDelegate, endObjectEntry, getDelegate, lookupDelegate, primitive, startJSON, startObject
-
-
-
-
Constructor Detail
-
FeatureCollectionHandler
public FeatureCollectionHandler()
-
FeatureCollectionHandler
public FeatureCollectionHandler(SimpleFeatureType featureType, AttributeIO attio)
-
-
Method Detail
-
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
-
endJSON
public void endJSON() throws ParseException, IOException
- Specified by:
endJSON
in interfaceContentHandler
- Overrides:
endJSON
in classDelegatingHandler<SimpleFeature>
- Throws:
ParseException
IOException
-
getCRS
public CoordinateReferenceSystem getCRS()
-
getValue
public SimpleFeature getValue()
- Specified by:
getValue
in interfaceIContentHandler<SimpleFeature>
- Overrides:
getValue
in classDelegatingHandler<SimpleFeature>
-
-