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 voidendObject()ConsumeJsonStreamToken.END_OBJECTtoken.Stringname()ConsumeJsonStreamToken.NAMEtoken.JsonStreamTokenpeek()Peek next token.voidstartObject()ConsumeJsonStreamToken.START_OBJECTtoken.JsonStreamSource.Valuevalue()ConsumeJsonStreamToken.VALUEtoken.-
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:JsonStreamSourceConsumeJsonStreamToken.NAMEtoken.- Specified by:
namein interfaceJsonStreamSource- Overrides:
namein classStreamSourceDelegate- Returns:
- name
- Throws:
IOException
-
value
public JsonStreamSource.Value value() throws IOException
Description copied from interface:JsonStreamSourceConsumeJsonStreamToken.VALUEtoken.- Specified by:
valuein interfaceJsonStreamSource- Overrides:
valuein classStreamSourceDelegate- Returns:
- value
- Throws:
IOException
-
startObject
public void startObject() throws IOExceptionDescription copied from interface:JsonStreamSourceConsumeJsonStreamToken.START_OBJECTtoken.- Specified by:
startObjectin interfaceJsonStreamSource- Overrides:
startObjectin classStreamSourceDelegate- Throws:
IOException
-
endObject
public void endObject() throws IOExceptionDescription copied from interface:JsonStreamSourceConsumeJsonStreamToken.END_OBJECTtoken.- Specified by:
endObjectin interfaceJsonStreamSource- Overrides:
endObjectin classStreamSourceDelegate- Throws:
IOException
-
peek
public JsonStreamToken peek() throws IOException
Description copied from interface:JsonStreamSourcePeek next token.- Specified by:
peekin interfaceJsonStreamSource- Overrides:
peekin classStreamSourceDelegate- Returns:
- token
- Throws:
IOException
-
-