public class StreamSourceDelegate extends 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() |
String |
getPublicId() |
String |
getSystemId() |
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 IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int getLineNumber()
getLineNumber in interface Locationpublic int getColumnNumber()
getColumnNumber in interface Locationpublic String name() throws IOException
JsonStreamSourceJsonStreamToken.NAME token.name in interface JsonStreamSourceIOExceptionpublic int getCharacterOffset()
getCharacterOffset in interface Locationpublic JsonStreamSource.Value value() throws IOException
JsonStreamSourceJsonStreamToken.VALUE token.value in interface JsonStreamSourceIOExceptionpublic void startObject()
throws IOException
JsonStreamSourceJsonStreamToken.START_OBJECT token.startObject in interface JsonStreamSourceIOExceptionpublic String getPublicId()
getPublicId in interface Locationpublic void endObject()
throws IOException
JsonStreamSourceJsonStreamToken.END_OBJECT token.endObject in interface JsonStreamSourceIOExceptionpublic String getSystemId()
getSystemId in interface Locationpublic void startArray()
throws IOException
JsonStreamSourceJsonStreamToken.START_ARRAY token.startArray in interface JsonStreamSourceIOExceptionpublic void endArray()
throws IOException
JsonStreamSourceJsonStreamToken.END_ARRAY token.endArray in interface JsonStreamSourceIOExceptionpublic JsonStreamToken peek() throws IOException
JsonStreamSourcepeek in interface JsonStreamSourceIOExceptionpublic void copy(JsonStreamTarget target) throws IOException
peek() == JsonStreamToken.NONE.
This method does not close streams.target - IOExceptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.