Class JSONParser
java.lang.Object
org.json.simple.parser.JSONParser
Deprecated.
Parser for JSON text. Please note that JSONParser is NOT thread-safe.
- Author:
- FangYidong<fangyidong@yahoo.com.cn>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.description omitted.static final intDeprecated.description omitted.static final intDeprecated.description omitted.static final intDeprecated.description omitted.static final intDeprecated.description omitted.static final intDeprecated.description omitted.static final intDeprecated.description omitted.static final intDeprecated.description omitted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Deprecated.description omitted.parse(Reader in, ContainerFactory containerFactory) Deprecated.Parse JSON text into java object from the input source.voidparse(Reader in, ContentHandler contentHandler) Deprecated.description omitted.voidparse(Reader in, ContentHandler contentHandler, boolean isResume) Deprecated.Stream processing of JSON text.Deprecated.description omitted.parse(String s, ContainerFactory containerFactory) Deprecated.description omitted.voidparse(String s, ContentHandler contentHandler) Deprecated.description omitted.voidparse(String s, ContentHandler contentHandler, boolean isResume) Deprecated.description omitted.voidreset()Deprecated.Reset the parser to the initial state without resetting the underlying reader.voidDeprecated.Reset the parser to the initial state with a new character reader.
-
Field Details
-
S_INIT
-
S_IN_FINISHED_VALUE
-
S_IN_OBJECT
-
S_IN_ARRAY
-
S_PASSED_PAIR_KEY
-
S_IN_PAIR_VALUE
-
S_END
-
S_IN_ERROR
-
-
Constructor Details
-
JSONParser
public JSONParser()Deprecated.
-
-
Method Details
-
reset
Deprecated.Reset the parser to the initial state without resetting the underlying reader. -
reset
-
getPosition
-
parse
Deprecated.description omitted.- Parameters:
s- description omitted.- Returns:
- description omitted.
- Throws:
ParseException- description omitted.
-
parse
Deprecated.description omitted.- Parameters:
s- description omitted.containerFactory- description omitted.- Returns:
- description omitted.
- Throws:
ParseException- description omitted.
-
parse
Deprecated.description omitted.- Parameters:
in- description omitted.- Returns:
- description omitted.
- Throws:
IOException- description omitted.ParseException- description omitted.
-
parse
public Object parse(Reader in, ContainerFactory containerFactory) throws IOException, ParseException Deprecated.Parse JSON text into java object from the input source.- Parameters:
in- description omitted.containerFactory- - Use this factory to createyour own JSON object and JSON array containers.- Returns:
- Instance of the following: org.json.simple.JSONObject, org.json.simple.JSONArray, java.lang.String, java.lang.Number, java.lang.Boolean, null
- Throws:
IOException- description omitted.ParseException- description omitted.
-
parse
Deprecated.description omitted.- Parameters:
s- description omitted.contentHandler- description omitted.- Throws:
ParseException- description omitted.
-
parse
Deprecated.description omitted.- Parameters:
s- description omitted.contentHandler- description omitted.isResume- description omitted.- Throws:
ParseException- description omitted.
-
parse
Deprecated.description omitted.- Parameters:
in- description omitted.contentHandler- description omitted.- Throws:
IOException- description omitted.ParseException- description omitted.
-
parse
public void parse(Reader in, ContentHandler contentHandler, boolean isResume) throws IOException, ParseException Deprecated.Stream processing of JSON text.- Parameters:
in- description omitted.contentHandler- description omitted.isResume- - Indicates if it continues previous parsing operation. If set to true, resume parsing the old stream, and parameter 'in' will be ignored. If this method is called for the first time in this instance, isResume will be ignored.- Throws:
IOException- description omitted.ParseException- description omitted.- See Also:
-
Jsoner.