Package org.json.simple.parser
Interface ContentHandler
Deprecated.
since 2.0.0 it doesn't extend the SAX ContentHandler promoting bad practices and incompatible code.
A simplified and stoppable SAX-like content handler for stream processing of JSON text.
- Author:
- FangYidong<fangyidong@yahoo.com.cn>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
endArray()
Deprecated.Receive notification of the end of a JSON array.void
endJSON()
Deprecated.Receive notification of the end of JSON processing.boolean
Deprecated.Receive notification of the end of a JSON object.boolean
Deprecated.Receive notification of the end of the value of previous object entry.boolean
Deprecated.Receive notification of the JSON primitive values: java.lang.String, java.lang.Number, java.lang.Boolean nullboolean
Deprecated.Receive notification of the beginning of a JSON array.void
Deprecated.Receive notification of the beginning of JSON processing.boolean
Deprecated.Receive notification of the beginning of a JSON object.boolean
startObjectEntry
(String key) Deprecated.Receive notification of the beginning of a JSON object entry.
-
Method Details
-
startJSON
Deprecated.Receive notification of the beginning of JSON processing. The parser will invoke this method only once.- Throws:
ParseException
- - JSONParser will stop and throw the same exception to the caller when receiving this exception.IOException
- description omitted.
-
endJSON
Deprecated.Receive notification of the end of JSON processing.- Throws:
ParseException
- description omitted.IOException
- description omitted.
-
startObject
Deprecated.Receive notification of the beginning of a JSON object.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException
- - JSONParser will stop and throw the same exception to the caller when receiving this exception.IOException
- description omitted.- See Also:
-
endObject
Deprecated.Receive notification of the end of a JSON object.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException
- description omitted.IOException
- description omitted.- See Also:
-
startObjectEntry
Deprecated.Receive notification of the beginning of a JSON object entry.- Parameters:
key
- - Key of a JSON object entry.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException
- description omitted.IOException
- description omitted.- See Also:
-
endObjectEntry
Deprecated.Receive notification of the end of the value of previous object entry.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException
- description omitted.IOException
- description omitted.- See Also:
-
startArray
Deprecated.Receive notification of the beginning of a JSON array.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException
- description omitted.IOException
- description omitted.- See Also:
-
endArray
Deprecated.Receive notification of the end of a JSON array.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException
- description omitted.IOException
- description omitted.- See Also:
-
primitive
Deprecated.Receive notification of the JSON primitive values: java.lang.String, java.lang.Number, java.lang.Boolean null- Parameters:
value
- - Instance of the following: java.lang.String, java.lang.Number, java.lang.Boolean null- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException
- description omitted.IOException
- description omitted.
-