de.odysseus.staxon.json.stream.util
Class AddRootSource
java.lang.Object
de.odysseus.staxon.json.stream.util.StreamSourceDelegate
de.odysseus.staxon.json.stream.util.AddRootSource
- All Implemented Interfaces:
- JsonStreamSource, Closeable, Location
public class AddRootSource
- extends StreamSourceDelegate
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddRootSource
public AddRootSource(JsonStreamSource delegate,
QName root,
char namespaceSeparator)
name
public String name()
throws IOException
- Description copied from interface:
JsonStreamSource
- Consume
JsonStreamToken.NAME token.
- Specified by:
name in interface JsonStreamSource- Overrides:
name in class StreamSourceDelegate
- Returns:
- name
- Throws:
IOException
value
public JsonStreamSource.Value value()
throws IOException
- Description copied from interface:
JsonStreamSource
- Consume
JsonStreamToken.VALUE token.
- Specified by:
value in interface JsonStreamSource- Overrides:
value in class StreamSourceDelegate
- Returns:
- value
- Throws:
IOException
startObject
public void startObject()
throws IOException
- Description copied from interface:
JsonStreamSource
- Consume
JsonStreamToken.START_OBJECT token.
- Specified by:
startObject in interface JsonStreamSource- Overrides:
startObject in class StreamSourceDelegate
- Throws:
IOException
endObject
public void endObject()
throws IOException
- Description copied from interface:
JsonStreamSource
- Consume
JsonStreamToken.END_OBJECT token.
- Specified by:
endObject in interface JsonStreamSource- Overrides:
endObject in class StreamSourceDelegate
- Throws:
IOException
peek
public JsonStreamToken peek()
throws IOException
- Description copied from interface:
JsonStreamSource
- Peek next token.
- Specified by:
peek in interface JsonStreamSource- Overrides:
peek in class StreamSourceDelegate
- Returns:
- token
- Throws:
IOException
Copyright © 2011-2012. All Rights Reserved.