public class StreamSourceDelegate extends java.lang.Object implements JsonStreamSource
JsonStreamSource.Value
FALSE, NULL, TRUE
Constructor and Description |
---|
StreamSourceDelegate(JsonStreamSource delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
copy(JsonStreamTarget target)
Copy events to given target until
peek() == JsonStreamToken.NONE . |
void |
endArray()
Consume
JsonStreamToken.END_ARRAY token. |
void |
endObject()
Consume
JsonStreamToken.END_OBJECT token. |
int |
getCharacterOffset() |
int |
getColumnNumber() |
int |
getLineNumber() |
java.lang.String |
getPublicId() |
java.lang.String |
getSystemId() |
java.lang.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. |
public StreamSourceDelegate(JsonStreamSource delegate)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public int getLineNumber()
getLineNumber
in interface javax.xml.stream.Location
public int getColumnNumber()
getColumnNumber
in interface javax.xml.stream.Location
public java.lang.String name() throws java.io.IOException
JsonStreamSource
JsonStreamToken.NAME
token.name
in interface JsonStreamSource
java.io.IOException
public int getCharacterOffset()
getCharacterOffset
in interface javax.xml.stream.Location
public JsonStreamSource.Value value() throws java.io.IOException
JsonStreamSource
JsonStreamToken.VALUE
token.value
in interface JsonStreamSource
java.io.IOException
public void startObject() throws java.io.IOException
JsonStreamSource
JsonStreamToken.START_OBJECT
token.startObject
in interface JsonStreamSource
java.io.IOException
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.stream.Location
public void endObject() throws java.io.IOException
JsonStreamSource
JsonStreamToken.END_OBJECT
token.endObject
in interface JsonStreamSource
java.io.IOException
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.stream.Location
public void startArray() throws java.io.IOException
JsonStreamSource
JsonStreamToken.START_ARRAY
token.startArray
in interface JsonStreamSource
java.io.IOException
public void endArray() throws java.io.IOException
JsonStreamSource
JsonStreamToken.END_ARRAY
token.endArray
in interface JsonStreamSource
java.io.IOException
public JsonStreamToken peek() throws java.io.IOException
JsonStreamSource
peek
in interface JsonStreamSource
java.io.IOException
public void copy(JsonStreamTarget target) throws java.io.IOException
peek() == JsonStreamToken.NONE
.
This method does not close streams.target
- java.io.IOException
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.