public interface ContentHandler
ContentHandler,
JSONParser.parse(java.io.Reader, ContentHandler, boolean)| Modifier and Type | Method and Description |
|---|---|
boolean |
endArray()
Receive notification of the end of a JSON array.
|
void |
endJSON()
Receive notification of the end of JSON processing.
|
boolean |
endObject()
Receive notification of the end of a JSON object.
|
boolean |
endObjectEntry()
Receive notification of the end of the value of previous object entry.
|
boolean |
primitive(Object value)
Receive notification of the JSON primitive values: java.lang.String,
java.lang.Number, java.lang.Boolean null
|
boolean |
startArray()
Receive notification of the beginning of a JSON array.
|
void |
startJSON()
Receive notification of the beginning of JSON processing.
|
boolean |
startObject()
Receive notification of the beginning of a JSON object.
|
boolean |
startObjectEntry(String key)
Receive notification of the beginning of a JSON object entry.
|
void startJSON()
throws JSONParseException,
IOException
JSONParseException - - JSONParser will stop and throw the same exception to the
caller when receiving this exception.IOExceptionvoid endJSON()
throws JSONParseException,
IOException
JSONParseExceptionIOExceptionboolean startObject()
throws JSONParseException,
IOException
JSONParseException - - JSONParser will stop and throw the same exception to the
caller when receiving this exception.IOExceptionendJSON()boolean endObject()
throws JSONParseException,
IOException
JSONParseExceptionIOExceptionstartObject()boolean startObjectEntry(String key) throws JSONParseException, IOException
key - - Key of a JSON object entry.JSONParseExceptionIOExceptionendObjectEntry()boolean endObjectEntry()
throws JSONParseException,
IOException
JSONParseExceptionIOExceptionstartObjectEntry(java.lang.String)boolean startArray()
throws JSONParseException,
IOException
JSONParseExceptionIOExceptionendArray()boolean endArray()
throws JSONParseException,
IOException
JSONParseExceptionIOExceptionstartArray()boolean primitive(Object value) throws JSONParseException, IOException
value - - Instance of the following: java.lang.String,
java.lang.Number, java.lang.Boolean nullJSONParseExceptionIOExceptionCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.