public interface ContentHandler
FangYidong<fangyidong@yahoo.com.cn>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(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 java.io.IOException,
ParseException
java.io.IOException - input-output exception.ParseException - unexpected token.
- JSONParser will stop and throw the same exception to the caller when receiving this exception.void endJSON()
throws java.io.IOException,
ParseException
java.io.IOException - input-output exception.ParseException - unexpected token.boolean startObject()
throws java.io.IOException,
ParseException
java.io.IOException - input-output exception.ParseException - unexpected token.
- JSONParser will stop and throw the same exception to the caller when receiving this exception.endJSON()boolean endObject()
throws java.io.IOException,
ParseException
java.io.IOException - input-output exception.ParseException - unexpected token.startObject()boolean startObjectEntry(java.lang.String key)
throws java.io.IOException,
ParseException
key - - Key of a JSON object entry.java.io.IOException - input-output exception.ParseException - unexpected token.endObjectEntry()boolean endObjectEntry()
throws java.io.IOException,
ParseException
java.io.IOException - input-output exception.ParseException - unexpected token.startObjectEntry(java.lang.String)boolean startArray()
throws java.io.IOException,
ParseException
java.io.IOException - input-output exception.ParseException - unexpected token.endArray()boolean endArray()
throws java.io.IOException,
ParseException
java.io.IOException - input-output exception.ParseException - unexpected token.startArray()boolean primitive(java.lang.Object value)
throws java.io.IOException,
ParseException
value - - Instance of the following:
java.lang.String,
java.lang.Number,
java.lang.Boolean
nulljava.io.IOException - input-output exception.ParseException - unexpected token.