Interface JsonStreamSource
-
- All Superinterfaces:
AutoCloseable
,Closeable
,Location
- All Known Implementing Classes:
AddRootSource
,StreamSourceDelegate
public interface JsonStreamSource extends Closeable, Location
JSON stream source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JsonStreamSource.Value
Represents a simple value.
-
Field Summary
Fields Modifier and Type Field Description static JsonStreamSource.Value
FALSE
"false" valuestatic JsonStreamSource.Value
NULL
"null" valuestatic JsonStreamSource.Value
TRUE
"true" value
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endArray()
ConsumeJsonStreamToken.END_ARRAY
token.void
endObject()
ConsumeJsonStreamToken.END_OBJECT
token.String
name()
ConsumeJsonStreamToken.NAME
token.JsonStreamToken
peek()
Peek next token.void
startArray()
ConsumeJsonStreamToken.START_ARRAY
token.void
startObject()
ConsumeJsonStreamToken.START_OBJECT
token.JsonStreamSource.Value
value()
ConsumeJsonStreamToken.VALUE
token.-
Methods inherited from interface javax.xml.stream.Location
getCharacterOffset, getColumnNumber, getLineNumber, getPublicId, getSystemId
-
-
-
-
Field Detail
-
TRUE
static final JsonStreamSource.Value TRUE
"true" value
-
FALSE
static final JsonStreamSource.Value FALSE
"false" value
-
NULL
static final JsonStreamSource.Value NULL
"null" value
-
-
Method Detail
-
name
String name() throws IOException
ConsumeJsonStreamToken.NAME
token.- Returns:
- name
- Throws:
IOException
-
value
JsonStreamSource.Value value() throws IOException
ConsumeJsonStreamToken.VALUE
token.- Returns:
- value
- Throws:
IOException
-
startObject
void startObject() throws IOException
ConsumeJsonStreamToken.START_OBJECT
token.- Throws:
IOException
-
endObject
void endObject() throws IOException
ConsumeJsonStreamToken.END_OBJECT
token.- Throws:
IOException
-
startArray
void startArray() throws IOException
ConsumeJsonStreamToken.START_ARRAY
token.- Throws:
IOException
-
endArray
void endArray() throws IOException
ConsumeJsonStreamToken.END_ARRAY
token.- Throws:
IOException
-
peek
JsonStreamToken peek() throws IOException
Peek next token.- Returns:
- token
- Throws:
IOException
-
-