public final class JsonValueParser extends Object implements Closeable
JsonValue.| Modifier and Type | Class and Description |
|---|---|
static class |
JsonValueParser.Builder
Builds
JsonValueParser. |
| Modifier and Type | Method and Description |
|---|---|
static JsonValueParser.Builder |
builder()
Returns a new builder.
|
static JsonValueParser.Builder |
builder(JsonFactory jsonFactory)
Returns a new builder with the specified
JsonFactory. |
JsonValue[] |
captureJsonValues(CapturingPointers capturingPointers)
Captures
JsonValues from the parser with the specified capturing pointers. |
void |
close()
Closes the parser.
|
JsonValue |
readJsonValue()
Reads a
JsonValue from the parser. |
public static JsonValueParser.Builder builder()
It applies some default configurations for its internal JsonFactory. The defaults include:
Note that the defaults may change in future versions.
public static JsonValueParser.Builder builder(JsonFactory jsonFactory)
JsonFactory.
It applies no additional configuration for the specified JsonFactory.
public JsonValue readJsonValue() throws IOException
JsonValue from the parser.null if the parser reaches at the end of input in the beginningIOException - if failing to read JSONJsonParseException - if failing to parse JSONpublic JsonValue[] captureJsonValues(CapturingPointers capturingPointers) throws IOException
JsonValues from the parser with the specified capturing pointers.null if the parser reaches at the end of input in the beginningIOException - if failing to read JSONJsonParseException - if failing to parse JSONpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - if failing to close