Interface JsonStreamSource
- All Superinterfaces:
AutoCloseable,Closeable,Location
- All Known Implementing Classes:
AddRootSource,StreamSourceDelegate
JSON stream source.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classRepresents a simple value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonStreamSource.Value"false" valuestatic final JsonStreamSource.Value"null" valuestatic final JsonStreamSource.Value"true" value -
Method Summary
Modifier and TypeMethodDescriptionvoidendArray()ConsumeJsonStreamToken.END_ARRAYtoken.voidConsumeJsonStreamToken.END_OBJECTtoken.name()ConsumeJsonStreamToken.NAMEtoken.peek()Peek next token.voidConsumeJsonStreamToken.START_ARRAYtoken.voidConsumeJsonStreamToken.START_OBJECTtoken.value()ConsumeJsonStreamToken.VALUEtoken.Methods inherited from interface javax.xml.stream.Location
getCharacterOffset, getColumnNumber, getLineNumber, getPublicId, getSystemId
-
Field Details
-
TRUE
"true" value -
FALSE
"false" value -
NULL
"null" value
-
-
Method Details
-
name
ConsumeJsonStreamToken.NAMEtoken.- Returns:
- name
- Throws:
IOException
-
value
ConsumeJsonStreamToken.VALUEtoken.- Returns:
- value
- Throws:
IOException
-
startObject
ConsumeJsonStreamToken.START_OBJECTtoken.- Throws:
IOException
-
endObject
ConsumeJsonStreamToken.END_OBJECTtoken.- Throws:
IOException
-
startArray
ConsumeJsonStreamToken.START_ARRAYtoken.- Throws:
IOException
-
endArray
ConsumeJsonStreamToken.END_ARRAYtoken.- Throws:
IOException
-
peek
Peek next token.- Returns:
- token
- Throws:
IOException
-