Class AddRootSource
- java.lang.Object
-
- org.apache.synapse.commons.staxon.core.json.stream.util.StreamSourceDelegate
-
- org.apache.synapse.commons.staxon.core.json.stream.util.AddRootSource
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Location
,JsonStreamSource
public class AddRootSource extends StreamSourceDelegate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.synapse.commons.staxon.core.json.stream.JsonStreamSource
JsonStreamSource.Value
-
-
Field Summary
-
Fields inherited from interface org.apache.synapse.commons.staxon.core.json.stream.JsonStreamSource
FALSE, NULL, TRUE
-
-
Constructor Summary
Constructors Constructor Description AddRootSource(JsonStreamSource delegate, QName root, char namespaceSeparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endObject()
ConsumeJsonStreamToken.END_OBJECT
token.String
name()
ConsumeJsonStreamToken.NAME
token.JsonStreamToken
peek()
Peek next token.void
startObject()
ConsumeJsonStreamToken.START_OBJECT
token.JsonStreamSource.Value
value()
ConsumeJsonStreamToken.VALUE
token.-
Methods inherited from class org.apache.synapse.commons.staxon.core.json.stream.util.StreamSourceDelegate
close, copy, endArray, getCharacterOffset, getColumnNumber, getLineNumber, getPublicId, getSystemId, startArray
-
-
-
-
Constructor Detail
-
AddRootSource
public AddRootSource(JsonStreamSource delegate, QName root, char namespaceSeparator)
-
-
Method Detail
-
name
public String name() throws IOException
Description copied from interface:JsonStreamSource
ConsumeJsonStreamToken.NAME
token.- Specified by:
name
in interfaceJsonStreamSource
- Overrides:
name
in classStreamSourceDelegate
- Returns:
- name
- Throws:
IOException
-
value
public JsonStreamSource.Value value() throws IOException
Description copied from interface:JsonStreamSource
ConsumeJsonStreamToken.VALUE
token.- Specified by:
value
in interfaceJsonStreamSource
- Overrides:
value
in classStreamSourceDelegate
- Returns:
- value
- Throws:
IOException
-
startObject
public void startObject() throws IOException
Description copied from interface:JsonStreamSource
ConsumeJsonStreamToken.START_OBJECT
token.- Specified by:
startObject
in interfaceJsonStreamSource
- Overrides:
startObject
in classStreamSourceDelegate
- Throws:
IOException
-
endObject
public void endObject() throws IOException
Description copied from interface:JsonStreamSource
ConsumeJsonStreamToken.END_OBJECT
token.- Specified by:
endObject
in interfaceJsonStreamSource
- Overrides:
endObject
in classStreamSourceDelegate
- Throws:
IOException
-
peek
public JsonStreamToken peek() throws IOException
Description copied from interface:JsonStreamSource
Peek next token.- Specified by:
peek
in interfaceJsonStreamSource
- Overrides:
peek
in classStreamSourceDelegate
- Returns:
- token
- Throws:
IOException
-
-