Package org.geotools.geojson
Class DelegatingHandler<T>
- Object
-
- DelegatingHandler<T>
-
- All Implemented Interfaces:
IContentHandler<T>,ContentHandler
- Direct Known Subclasses:
FeatureCollectionHandler,FeatureHandler,FeatureTypeHandler,GeometryCollectionHandler,GeometryHandler
public abstract class DelegatingHandler<T> extends Object implements IContentHandler<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentHandlerdelegateprotected static HashMap<String,Class<? extends IContentHandler>>handlersprotected static DelegatingHandler.NullHandlerNULLprotected static List<String>NULL_LISTprotected static DelegatingHandler.NullHandlerUNINITIALIZED
-
Constructor Summary
Constructors Constructor Description DelegatingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IContentHandlercreateDelegate(Class clazz, Object[] args)booleanendArray()voidendJSON()booleanendObject()booleanendObjectEntry()ContentHandlergetDelegate()TgetValue()protected Class<? extends ContentHandler>lookupDelegate(String type)booleanprimitive(Object value)booleanstartArray()voidstartJSON()booleanstartObject()booleanstartObjectEntry(String key)
-
-
-
Field Detail
-
handlers
protected static HashMap<String,Class<? extends IContentHandler>> handlers
-
NULL
protected static DelegatingHandler.NullHandler NULL
-
UNINITIALIZED
protected static DelegatingHandler.NullHandler UNINITIALIZED
-
delegate
protected ContentHandler delegate
-
-
Method Detail
-
getDelegate
public ContentHandler getDelegate()
-
startJSON
public void startJSON() throws ParseException, IOException- Specified by:
startJSONin interfaceContentHandler- Throws:
ParseExceptionIOException
-
endJSON
public void endJSON() throws ParseException, IOException- Specified by:
endJSONin interfaceContentHandler- Throws:
ParseExceptionIOException
-
startObject
public boolean startObject() throws ParseException, IOException- Specified by:
startObjectin interfaceContentHandler- Throws:
ParseExceptionIOException
-
endObject
public boolean endObject() throws ParseException, IOException- Specified by:
endObjectin interfaceContentHandler- Throws:
ParseExceptionIOException
-
startObjectEntry
public boolean startObjectEntry(String key) throws ParseException, IOException
- Specified by:
startObjectEntryin interfaceContentHandler- Throws:
ParseExceptionIOException
-
endObjectEntry
public boolean endObjectEntry() throws ParseException, IOException- Specified by:
endObjectEntryin interfaceContentHandler- Throws:
ParseExceptionIOException
-
startArray
public boolean startArray() throws ParseException, IOException- Specified by:
startArrayin interfaceContentHandler- Throws:
ParseExceptionIOException
-
endArray
public boolean endArray() throws ParseException, IOException- Specified by:
endArrayin interfaceContentHandler- Throws:
ParseExceptionIOException
-
primitive
public boolean primitive(Object value) throws ParseException, IOException
- Specified by:
primitivein interfaceContentHandler- Throws:
ParseExceptionIOException
-
getValue
public T getValue()
- Specified by:
getValuein interfaceIContentHandler<T>
-
createDelegate
protected IContentHandler createDelegate(Class clazz, Object[] args)
-
-