com.pnfsoftware.jeb.util.encoding.json.parser.ContentHandler |
A simplified and stoppable SAX-like content handler for stream processing of JSON text.
parse(java.io.Reader, ContentHandler, boolean)
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
endArray()
Receive notification of the end of a JSON array.
| ||||||||||
abstract void |
endJSON()
Receive notification of the end of JSON processing.
| ||||||||||
abstract boolean |
endObject()
Receive notification of the end of a JSON object.
| ||||||||||
abstract boolean |
endObjectEntry()
Receive notification of the end of the value of previous object entry.
| ||||||||||
abstract boolean |
primitive(Object value)
Receive notification of the JSON primitive values:
java.lang.String,
java.lang.Number,
java.lang.Boolean
null
| ||||||||||
abstract boolean |
startArray()
Receive notification of the beginning of a JSON array.
| ||||||||||
abstract void |
startJSON()
Receive notification of the beginning of JSON processing.
| ||||||||||
abstract boolean |
startObject()
Receive notification of the beginning of a JSON object.
| ||||||||||
abstract boolean |
startObjectEntry(String key)
Receive notification of the beginning of a JSON object entry.
|
Receive notification of the end of a JSON array.
ParseException | |
IOException | |
ParseException |
Receive notification of the end of JSON processing.
ParseException | |
---|---|
IOException |
Receive notification of the end of a JSON object.
ParseException | |
IOException | |
ParseException |
Receive notification of the end of the value of previous object entry.
ParseException | |
IOException | |
ParseException |
Receive notification of the JSON primitive values: java.lang.String, java.lang.Number, java.lang.Boolean null
value | - Instance of the following: java.lang.String, java.lang.Number, java.lang.Boolean null |
---|
ParseException | |
---|---|
IOException |
Receive notification of the beginning of a JSON array.
ParseException | |
IOException | |
ParseException |
Receive notification of the beginning of JSON processing. The parser will invoke this method only once.
ParseException | - JSONParser will stop and throw the same exception to the caller when receiving this exception. |
---|---|
IOException |
Receive notification of the beginning of a JSON object.
ParseException | - JSONParser will stop and throw the same exception to the caller when receiving this exception. |
---|---|
IOException |
Receive notification of the beginning of a JSON object entry.
key | - Key of a JSON object entry. |
---|
ParseException | |
IOException | |
ParseException |