public class JSONValueBuilder extends Object implements JSONBuilder
| Constructor and Description |
|---|
JSONValueBuilder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptChar(int ch)
Accept a character as part of the JSON, and return
true if the character has been consumed. |
void |
close()
Close the builder.
|
net.pwall.json.JSONValue |
getResult()
Get the
JSONValue result. |
boolean |
isComplete()
Test whether the JSON being parsed by this builder is complete.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckWhitespace, isWhitespacepublic boolean isComplete()
JSONBuilderisComplete in interface JSONBuildertrue if the JSON is completepublic net.pwall.json.JSONValue getResult()
JSONBuilderJSONValue result.getResult in interface JSONBuilderpublic boolean acceptChar(int ch)
JSONBuildertrue if the character has been consumed. The
character is in the form of a Unicode code point; since all of the syntactic elements of JSON fall within the
ASCII subset, the only place this is relevant is inside strings.acceptChar in interface JSONBuilderch - the charactertrue if the character has been consumedpublic void close()
JSONBuilderclose in interface JSONBuilderCopyright © 2021. All rights reserved.