public abstract class DelegatingHandler<T> extends Object implements IContentHandler<T>
| Modifier and Type | Field and Description |
|---|---|
protected ContentHandler |
delegate |
protected static HashMap<String,Class<? extends IContentHandler>> |
handlers |
protected static DelegatingHandler.NullHandler |
NULL |
protected static List |
NULL_LIST |
protected static DelegatingHandler.NullHandler |
UNINITIALIZED |
| Constructor and Description |
|---|
DelegatingHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected IContentHandler |
createDelegate(Class clazz,
Object[] args) |
boolean |
endArray() |
void |
endJSON() |
boolean |
endObject() |
boolean |
endObjectEntry() |
ContentHandler |
getDelegate() |
T |
getValue() |
protected Class<? extends ContentHandler> |
lookupDelegate(String type) |
boolean |
primitive(Object value) |
boolean |
startArray() |
void |
startJSON() |
boolean |
startObject() |
boolean |
startObjectEntry(String key) |
protected static HashMap<String,Class<? extends IContentHandler>> handlers
protected static DelegatingHandler.NullHandler NULL
protected static DelegatingHandler.NullHandler UNINITIALIZED
protected static List NULL_LIST
protected ContentHandler delegate
public ContentHandler getDelegate()
public void startJSON()
throws ParseException,
IOException
startJSON in interface ContentHandlerParseExceptionIOExceptionpublic void endJSON()
throws ParseException,
IOException
endJSON in interface ContentHandlerParseExceptionIOExceptionpublic boolean startObject()
throws ParseException,
IOException
startObject in interface ContentHandlerParseExceptionIOExceptionpublic boolean endObject()
throws ParseException,
IOException
endObject in interface ContentHandlerParseExceptionIOExceptionpublic boolean startObjectEntry(String key) throws ParseException, IOException
startObjectEntry in interface ContentHandlerParseExceptionIOExceptionpublic boolean endObjectEntry()
throws ParseException,
IOException
endObjectEntry in interface ContentHandlerParseExceptionIOExceptionpublic boolean startArray()
throws ParseException,
IOException
startArray in interface ContentHandlerParseExceptionIOExceptionpublic boolean endArray()
throws ParseException,
IOException
endArray in interface ContentHandlerParseExceptionIOExceptionpublic boolean primitive(Object value) throws ParseException, IOException
primitive in interface ContentHandlerParseExceptionIOExceptionpublic T getValue()
getValue in interface IContentHandler<T>protected IContentHandler createDelegate(Class clazz, Object[] args)
Copyright © 1996–2019 Geotools. All rights reserved.