de.odysseus.staxon.json.stream.util
Class AddRootSource

java.lang.Object
  extended by de.odysseus.staxon.json.stream.util.StreamSourceDelegate
      extended by de.odysseus.staxon.json.stream.util.AddRootSource
All Implemented Interfaces:
JsonStreamSource, Closeable, Location

public class AddRootSource
extends StreamSourceDelegate


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
AddRootSource(JsonStreamSource delegate, QName root, char namespaceSeparator)
           
 
Method Summary
 void endObject()
          Consume JsonStreamToken.END_OBJECT token.
 String name()
          Consume JsonStreamToken.NAME token.
 JsonStreamToken peek()
          Peek next token.
 void startObject()
          Consume JsonStreamToken.START_OBJECT token.
 JsonStreamSource.Value value()
          Consume JsonStreamToken.VALUE token.
 
Methods inherited from class de.odysseus.staxon.json.stream.util.StreamSourceDelegate
close, copy, endArray, getCharacterOffset, getColumnNumber, getLineNumber, getPublicId, getSystemId, startArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddRootSource

public AddRootSource(JsonStreamSource delegate,
                     QName root,
                     char namespaceSeparator)
Method Detail

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.