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 ContentHandler
ParseException
IOException
public void endJSON() throws ParseException, IOException
endJSON
in interface ContentHandler
ParseException
IOException
public boolean startObject() throws ParseException, IOException
startObject
in interface ContentHandler
ParseException
IOException
public boolean endObject() throws ParseException, IOException
endObject
in interface ContentHandler
ParseException
IOException
public boolean startObjectEntry(String key) throws ParseException, IOException
startObjectEntry
in interface ContentHandler
ParseException
IOException
public boolean endObjectEntry() throws ParseException, IOException
endObjectEntry
in interface ContentHandler
ParseException
IOException
public boolean startArray() throws ParseException, IOException
startArray
in interface ContentHandler
ParseException
IOException
public boolean endArray() throws ParseException, IOException
endArray
in interface ContentHandler
ParseException
IOException
public boolean primitive(Object value) throws ParseException, IOException
primitive
in interface ContentHandler
ParseException
IOException
public T getValue()
getValue
in interface IContentHandler<T>
protected IContentHandler createDelegate(Class clazz, Object[] args)
Copyright © 1996–2019 Geotools. All rights reserved.