public class StreamSourceDelegate extends java.lang.Object implements JsonStreamSource
JsonStreamSource.ValueFALSE, 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.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic int getLineNumber()
getLineNumber in interface javax.xml.stream.Locationpublic int getColumnNumber()
getColumnNumber in interface javax.xml.stream.Locationpublic java.lang.String name()
throws java.io.IOException
JsonStreamSourceJsonStreamToken.NAME token.name in interface JsonStreamSourcejava.io.IOExceptionpublic int getCharacterOffset()
getCharacterOffset in interface javax.xml.stream.Locationpublic JsonStreamSource.Value value() throws java.io.IOException
JsonStreamSourceJsonStreamToken.VALUE token.value in interface JsonStreamSourcejava.io.IOExceptionpublic void startObject()
throws java.io.IOException
JsonStreamSourceJsonStreamToken.START_OBJECT token.startObject in interface JsonStreamSourcejava.io.IOExceptionpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.stream.Locationpublic void endObject()
throws java.io.IOException
JsonStreamSourceJsonStreamToken.END_OBJECT token.endObject in interface JsonStreamSourcejava.io.IOExceptionpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.stream.Locationpublic void startArray()
throws java.io.IOException
JsonStreamSourceJsonStreamToken.START_ARRAY token.startArray in interface JsonStreamSourcejava.io.IOExceptionpublic void endArray()
throws java.io.IOException
JsonStreamSourceJsonStreamToken.END_ARRAY token.endArray in interface JsonStreamSourcejava.io.IOExceptionpublic JsonStreamToken peek() throws java.io.IOException
JsonStreamSourcepeek in interface JsonStreamSourcejava.io.IOExceptionpublic void copy(JsonStreamTarget target) throws java.io.IOException
peek() == JsonStreamToken.NONE.
This method does not close streams.target - java.io.IOExceptionCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.