|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.odysseus.staxon.json.stream.util.StreamSourceDelegate
public class StreamSourceDelegate
Delegating stream source.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.odysseus.staxon.json.stream.JsonStreamSource |
|---|
JsonStreamSource.Value |
| Field Summary |
|---|
| Fields inherited from interface de.odysseus.staxon.json.stream.JsonStreamSource |
|---|
FALSE, NULL, TRUE |
| Constructor Summary | |
|---|---|
StreamSourceDelegate(JsonStreamSource delegate)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamSourceDelegate(JsonStreamSource delegate)
| Method Detail |
|---|
public void close()
throws IOException
close in interface CloseableIOExceptionpublic int getLineNumber()
getLineNumber in interface Locationpublic int getColumnNumber()
getColumnNumber in interface Location
public String name()
throws IOException
JsonStreamSourceJsonStreamToken.NAME token.
name in interface JsonStreamSourceIOExceptionpublic int getCharacterOffset()
getCharacterOffset in interface Location
public JsonStreamSource.Value value()
throws IOException
JsonStreamSourceJsonStreamToken.VALUE token.
value in interface JsonStreamSourceIOException
public void startObject()
throws IOException
JsonStreamSourceJsonStreamToken.START_OBJECT token.
startObject in interface JsonStreamSourceIOExceptionpublic String getPublicId()
getPublicId in interface Location
public void endObject()
throws IOException
JsonStreamSourceJsonStreamToken.END_OBJECT token.
endObject in interface JsonStreamSourceIOExceptionpublic String getSystemId()
getSystemId in interface Location
public void startArray()
throws IOException
JsonStreamSourceJsonStreamToken.START_ARRAY token.
startArray in interface JsonStreamSourceIOException
public void endArray()
throws IOException
JsonStreamSourceJsonStreamToken.END_ARRAY token.
endArray in interface JsonStreamSourceIOException
public JsonStreamToken peek()
throws IOException
JsonStreamSource
peek in interface JsonStreamSourceIOException
public void copy(JsonStreamTarget target)
throws IOException
peek() == JsonStreamToken.NONE.
This method does not close streams.
target -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||