public class JsonParser
extends java.lang.Object
JsonParser parses and validates the JSON object passed upon
parse(String) or parse(InputStream, String) and notifies
the specified JsonHandler| Constructor and Description |
|---|
JsonParser(JsonHandler jsonHandler)
Create a new
JSONParser with the specified JSONHandler. |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(java.io.InputStream input,
java.lang.String charSetName) |
void |
parse(java.io.Reader reader) |
void |
parse(java.lang.String str) |
public JsonParser(JsonHandler jsonHandler)
JSONParser with the specified JSONHandler.jsonHandler - A JSONHandlerpublic void parse(java.lang.String str)
throws java.io.IOException
str - String to be parsedjava.io.IOException - If an error occurs.public void parse(java.io.InputStream input,
java.lang.String charSetName)
throws java.io.IOException
input - InputStream to be parsed.charSetName - Name of the charset to be used.java.io.IOException - If an error occurs.public void parse(java.io.Reader reader)
throws java.io.IOException
reader - The readerjava.io.IOException - If an error occurs.Copyright © 2010 - 2023 Adobe. All Rights Reserved