Class JsonParser
java.lang.Object
org.apache.jackrabbit.commons.json.JsonParser
JsonParser parses and validates the JSON object passed upon
parse(String) or parse(InputStream, String) and notifies
the specified JsonHandler-
Constructor Summary
ConstructorsConstructorDescriptionJsonParser(JsonHandler jsonHandler) Create a newJSONParserwith the specifiedJSONHandler. -
Method Summary
-
Constructor Details
-
JsonParser
Create a newJSONParserwith the specifiedJSONHandler.- Parameters:
jsonHandler- AJSONHandler
-
-
Method Details
-
parse
- Parameters:
str- String to be parsed- Throws:
IOException- If an error occurs.
-
parse
- Parameters:
input- InputStream to be parsed.charSetName- Name of the charset to be used.- Throws:
IOException- If an error occurs.
-
parse
- Parameters:
reader- The reader- Throws:
IOException- If an error occurs.
-