public interface ContentHandler
| 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(java.lang.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(java.lang.String key)
Receive notification of the beginning of a JSON object entry.
|
void startJSON() throws ParseException, java.io.IOException
ParseException - JSONParser will stop and throw the same
exception to the caller when receiving this exception.java.io.IOException - if there is an I/O problem.void endJSON() throws ParseException, java.io.IOException
ParseException - if there is a parsing problem.java.io.IOException - if there is an I/O problem.boolean startObject() throws ParseException, java.io.IOException
ParseException - JSONParser will stop and throw the same
exception to the caller when receiving this exception.java.io.IOException - if there is an I/O problem.endJSON()boolean endObject() throws ParseException, java.io.IOException
ParseException - if there is a parsing problem.java.io.IOException - if there is an I/O problem.startObject()boolean startObjectEntry(java.lang.String key) throws ParseException, java.io.IOException
key - key of a JSON object entry.ParseException - if there is a parsing problem.java.io.IOException - if there is an I/O problem.endObjectEntry()boolean endObjectEntry() throws ParseException, java.io.IOException
ParseException - if there is a parsing problem.java.io.IOException - if there is an I/O problem.startObjectEntry(java.lang.String)boolean startArray() throws ParseException, java.io.IOException
ParseException - if there is a parsing problem.java.io.IOException - if there is an I/O problem.endArray()boolean endArray() throws ParseException, java.io.IOException
ParseException - if there is a parsing problem.java.io.IOException - if there is an I/O problem.startArray()boolean primitive(java.lang.Object value) throws ParseException, java.io.IOException
value - instance of the following:
java.lang.String,
java.lang.Number,
java.lang.Boolean,
nullParseException - if there is a parsing problem.java.io.IOException - if there is an I/O problem.