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 classJsonStreamSource.ValueRepresents a simple value.
-
Field Summary
Fields Modifier and Type Field Description static JsonStreamSource.ValueFALSE"false" valuestatic JsonStreamSource.ValueNULL"null" valuestatic JsonStreamSource.ValueTRUE"true" value
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendArray()ConsumeJsonStreamToken.END_ARRAYtoken.voidendObject()ConsumeJsonStreamToken.END_OBJECTtoken.Stringname()ConsumeJsonStreamToken.NAMEtoken.JsonStreamTokenpeek()Peek next token.voidstartArray()ConsumeJsonStreamToken.START_ARRAYtoken.voidstartObject()ConsumeJsonStreamToken.START_OBJECTtoken.JsonStreamSource.Valuevalue()ConsumeJsonStreamToken.VALUEtoken.-
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.NAMEtoken.- Returns:
- name
- Throws:
IOException
-
value
JsonStreamSource.Value value() throws IOException
ConsumeJsonStreamToken.VALUEtoken.- Returns:
- value
- Throws:
IOException
-
startObject
void startObject() throws IOExceptionConsumeJsonStreamToken.START_OBJECTtoken.- Throws:
IOException
-
endObject
void endObject() throws IOExceptionConsumeJsonStreamToken.END_OBJECTtoken.- Throws:
IOException
-
startArray
void startArray() throws IOExceptionConsumeJsonStreamToken.START_ARRAYtoken.- Throws:
IOException
-
endArray
void endArray() throws IOExceptionConsumeJsonStreamToken.END_ARRAYtoken.- Throws:
IOException
-
peek
JsonStreamToken peek() throws IOException
Peek next token.- Returns:
- token
- Throws:
IOException
-
-