java.lang.Object
org.jooq.tools.json.JSONParser
Deprecated, for removal: This API element is subject to removal in a future version.
- 3.21.0 - [#18329] - This shaded third party dependency will be
removed without replacement. Please use any other JSON parser,
instead - e.g. Jackson.
Parser for JSON text. Please note that JSONParser is NOT thread-safe.
- Author:
- FangYidong<fangyidong@yahoo.com.cn>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.parse
(Reader in, ContainerFactory containerFactory) Deprecated, for removal: This API element is subject to removal in a future version.Parse JSON text into java object from the input source.void
parse
(Reader in, ContentHandler contentHandler) Deprecated, for removal: This API element is subject to removal in a future version.void
parse
(Reader in, ContentHandler contentHandler, boolean isResume) Deprecated, for removal: This API element is subject to removal in a future version.Stream processing of JSON text.Deprecated, for removal: This API element is subject to removal in a future version.parse
(String s, ContainerFactory containerFactory) Deprecated, for removal: This API element is subject to removal in a future version.void
parse
(String s, ContentHandler contentHandler) Deprecated, for removal: This API element is subject to removal in a future version.void
parse
(String s, ContentHandler contentHandler, boolean isResume) Deprecated, for removal: This API element is subject to removal in a future version.void
reset()
Deprecated, for removal: This API element is subject to removal in a future version.Reset the parser to the initial state without resetting the underlying reader.void
Deprecated, for removal: This API element is subject to removal in a future version.Reset the parser to the initial state with a new character reader.
-
Field Details
-
S_INIT
public static final int S_INITDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
S_IN_FINISHED_VALUE
public static final int S_IN_FINISHED_VALUEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
S_IN_OBJECT
public static final int S_IN_OBJECTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
S_IN_ARRAY
public static final int S_IN_ARRAYDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
S_PASSED_PAIR_KEY
public static final int S_PASSED_PAIR_KEYDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
S_IN_PAIR_VALUE
public static final int S_IN_PAIR_VALUEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
S_END
public static final int S_ENDDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
S_IN_ERROR
public static final int S_IN_ERRORDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
JSONParser
public JSONParser()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
reset
public void reset()Deprecated, for removal: This API element is subject to removal in a future version.Reset the parser to the initial state without resetting the underlying reader. -
reset
Deprecated, for removal: This API element is subject to removal in a future version.Reset the parser to the initial state with a new character reader.- Parameters:
in
- - The new character reader.- Throws:
IOException
ParseException
-
getPosition
public int getPosition()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The position of the beginning of the current token.
-
parse
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
ParseException
-
parse
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
ParseException
-
parse
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
ParseException
-
parse
public Object parse(Reader in, ContainerFactory containerFactory) throws IOException, ParseException Deprecated, for removal: This API element is subject to removal in a future version.Parse JSON text into java object from the input source.- Parameters:
in
-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
ParseException
-
parse
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
ParseException
-
parse
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
ParseException
-
parse
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
ParseException
-
parse
public void parse(Reader in, ContentHandler contentHandler, boolean isResume) throws IOException, ParseException Deprecated, for removal: This API element is subject to removal in a future version.Stream processing of JSON text.- Parameters:
in
-contentHandler
-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
ParseException
- See Also:
-