Class JsonParser
- java.lang.Object
- 
- org.apache.jackrabbit.commons.json.JsonParser
 
- 
 public class JsonParser extends Object JsonParserparses and validates the JSON object passed uponparse(String)orparse(InputStream, String)and notifies the specifiedJsonHandler
- 
- 
Constructor SummaryConstructors Constructor Description JsonParser(JsonHandler jsonHandler)Create a newJSONParserwith the specifiedJSONHandler.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(InputStream input, String charSetName)voidparse(Reader reader)voidparse(String str)
 
- 
- 
- 
Constructor Detail- 
JsonParserpublic JsonParser(JsonHandler jsonHandler) Create a newJSONParserwith the specifiedJSONHandler.- Parameters:
- jsonHandler- A- JSONHandler
 
 
- 
 - 
Method Detail- 
parsepublic void parse(String str) throws IOException - Parameters:
- str- String to be parsed
- Throws:
- IOException- If an error occurs.
 
 - 
parsepublic void parse(InputStream input, String charSetName) throws IOException - Parameters:
- input- InputStream to be parsed.
- charSetName- Name of the charset to be used.
- Throws:
- IOException- If an error occurs.
 
 - 
parsepublic void parse(Reader reader) throws IOException - Parameters:
- reader- The reader
- Throws:
- IOException- If an error occurs.
 
 
- 
 
-