Class JsonParser
- java.lang.Object
-
- org.apache.jackrabbit.commons.json.JsonParser
-
@Deprecated(since="2.24.0") public class JsonParser extends Object
Deprecated.use JSON Processing API instead.JsonParserparses and validates the JSON object passed uponparse(String)orparse(InputStream, String)and notifies the specifiedJsonHandler
-
-
Constructor Summary
Constructors Constructor Description JsonParser(JsonHandler jsonHandler)Deprecated.Create a newJSONParserwith the specifiedJSONHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidparse(InputStream input, String charSetName)Deprecated.voidparse(Reader reader)Deprecated.voidparse(String str)Deprecated.
-
-
-
Constructor Detail
-
JsonParser
public JsonParser(JsonHandler jsonHandler)
Deprecated.Create a newJSONParserwith the specifiedJSONHandler.- Parameters:
jsonHandler- AJSONHandler
-
-
Method Detail
-
parse
public void parse(String str) throws IOException
Deprecated.- Parameters:
str- String to be parsed- Throws:
IOException- If an error occurs.
-
parse
public void parse(InputStream input, String charSetName) throws IOException
Deprecated.- Parameters:
input- InputStream to be parsed.charSetName- Name of the charset to be used.- Throws:
IOException- If an error occurs.
-
parse
public void parse(Reader reader) throws IOException
Deprecated.- Parameters:
reader- The reader- Throws:
IOException- If an error occurs.
-
-