| Constructor and Description |
|---|
JsonParser(JsonReader reader)
Construct a new
JsonParser for JSON content to be read from the
reader parameter instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
parse(JsonHandler handler)
Parse the JSON document with the provided
JsonHandler callback
instance. |
public JsonParser(JsonReader reader)
JsonParser for JSON content to be read from the
reader parameter instance.reader - The JsonReader from which JSON is read.NullPointerException - If reader is null.public boolean parse(JsonHandler handler) throws IOException, JsonParseException
JsonHandler callback
instance.handler - The JsonHandler instance for handling content
callbacks.true if the document has been read entirely. false
if parsing was aborted by a handler callback. If a handler aborts
parsing, subsequent calls to parse(JsonHandler) will
resume from the position at which parsing was previously aborted.IOException - If an I/O error has occurred.JsonParseException - If the content is not a well formed JSON term.NullPointerException - If handler is null.Copyright © 2020 OpenJAX. All rights reserved.