public interface JsonStreamSource extends Closeable, Location
Modifier and Type | Interface and Description |
---|---|
static class |
JsonStreamSource.Value
Represents a simple value.
|
Modifier and Type | Field and Description |
---|---|
static JsonStreamSource.Value |
FALSE
"false" value
|
static JsonStreamSource.Value |
NULL
"null" value
|
static JsonStreamSource.Value |
TRUE
"true" value
|
Modifier and Type | Method and Description |
---|---|
void |
endArray()
Consume
JsonStreamToken.END_ARRAY token. |
void |
endObject()
Consume
JsonStreamToken.END_OBJECT token. |
String |
name()
Consume
JsonStreamToken.NAME token. |
JsonStreamToken |
peek()
Peek next token.
|
void |
startArray()
Consume
JsonStreamToken.START_ARRAY token. |
void |
startObject()
Consume
JsonStreamToken.START_OBJECT token. |
JsonStreamSource.Value |
value()
Consume
JsonStreamToken.VALUE token. |
getCharacterOffset, getColumnNumber, getLineNumber, getPublicId, getSystemId
static final JsonStreamSource.Value TRUE
static final JsonStreamSource.Value FALSE
static final JsonStreamSource.Value NULL
String name() throws IOException
JsonStreamToken.NAME
token.IOException
JsonStreamSource.Value value() throws IOException
JsonStreamToken.VALUE
token.IOException
void startObject() throws IOException
JsonStreamToken.START_OBJECT
token.IOException
void endObject() throws IOException
JsonStreamToken.END_OBJECT
token.IOException
void startArray() throws IOException
JsonStreamToken.START_ARRAY
token.IOException
void endArray() throws IOException
JsonStreamToken.END_ARRAY
token.IOException
JsonStreamToken peek() throws IOException
IOException
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.