Package org.geotools.geojson.feature
Class FeatureTypeHandler
- All Implemented Interfaces:
IContentHandler<SimpleFeatureType>,ContentHandler
public class FeatureTypeHandler
extends DelegatingHandler<SimpleFeatureType>
implements IContentHandler<SimpleFeatureType>
Obtains a complete feature type from GeoJSON by parsing beyond first feature and finding attributes that did not
appear in the first feature or had null values.
If null values are encoded, parsing will stop when all data types are found. In the worst case, all features will be parsed. If null values are not encoded, all features will be parsed anyway.
-
Field Summary
Fields inherited from class DelegatingHandler
delegate, handlers, NULL, NULL_LIST, UNINITIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanendArray()voidendJSON()booleanbooleangetValue()booleanbooleanbooleanbooleanstartObjectEntry(String key) Methods inherited from class DelegatingHandler
createDelegate, getDelegate, lookupDelegate, startJSONMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
startJSON
-
Constructor Details
-
FeatureTypeHandler
public FeatureTypeHandler(boolean nullValuesEncoded)
-
-
Method Details
-
startObjectEntry
- Specified by:
startObjectEntryin interfaceContentHandler- Overrides:
startObjectEntryin classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
startArray
- Specified by:
startArrayin interfaceContentHandler- Overrides:
startArrayin classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
endArray
- Specified by:
endArrayin interfaceContentHandler- Overrides:
endArrayin classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
startObject
- Specified by:
startObjectin interfaceContentHandler- Overrides:
startObjectin classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
endObject
- Specified by:
endObjectin interfaceContentHandler- Overrides:
endObjectin classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
primitive
- Specified by:
primitivein interfaceContentHandler- Overrides:
primitivein classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
endObjectEntry
- Specified by:
endObjectEntryin interfaceContentHandler- Overrides:
endObjectEntryin classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
endJSON
- Specified by:
endJSONin interfaceContentHandler- Overrides:
endJSONin classDelegatingHandler<SimpleFeatureType>- Throws:
ParseExceptionIOException
-
getValue
- Specified by:
getValuein interfaceIContentHandler<SimpleFeatureType>- Overrides:
getValuein classDelegatingHandler<SimpleFeatureType>
-