Class StreamSourceDelegate
java.lang.Object
org.apache.synapse.commons.staxon.core.json.stream.util.StreamSourceDelegate
- All Implemented Interfaces:
Closeable,AutoCloseable,Location,JsonStreamSource
- Direct Known Subclasses:
AddRootSource
Delegating stream source.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcopy(JsonStreamTarget target) Copy events to given target untilpeek() == JsonStreamToken.NONE.voidendArray()ConsumeJsonStreamToken.END_ARRAYtoken.voidConsumeJsonStreamToken.END_OBJECTtoken.intintintname()ConsumeJsonStreamToken.NAMEtoken.peek()Peek next token.voidConsumeJsonStreamToken.START_ARRAYtoken.voidConsumeJsonStreamToken.START_OBJECTtoken.value()ConsumeJsonStreamToken.VALUEtoken.
-
Constructor Details
-
StreamSourceDelegate
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocation
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocation
-
name
Description copied from interface:JsonStreamSourceConsumeJsonStreamToken.NAMEtoken.- Specified by:
namein interfaceJsonStreamSource- Returns:
- name
- Throws:
IOException
-
getCharacterOffset
public int getCharacterOffset()- Specified by:
getCharacterOffsetin interfaceLocation
-
value
Description copied from interface:JsonStreamSourceConsumeJsonStreamToken.VALUEtoken.- Specified by:
valuein interfaceJsonStreamSource- Returns:
- value
- Throws:
IOException
-
startObject
Description copied from interface:JsonStreamSourceConsumeJsonStreamToken.START_OBJECTtoken.- Specified by:
startObjectin interfaceJsonStreamSource- Throws:
IOException
-
getPublicId
- Specified by:
getPublicIdin interfaceLocation
-
endObject
Description copied from interface:JsonStreamSourceConsumeJsonStreamToken.END_OBJECTtoken.- Specified by:
endObjectin interfaceJsonStreamSource- Throws:
IOException
-
getSystemId
- Specified by:
getSystemIdin interfaceLocation
-
startArray
Description copied from interface:JsonStreamSourceConsumeJsonStreamToken.START_ARRAYtoken.- Specified by:
startArrayin interfaceJsonStreamSource- Throws:
IOException
-
endArray
Description copied from interface:JsonStreamSourceConsumeJsonStreamToken.END_ARRAYtoken.- Specified by:
endArrayin interfaceJsonStreamSource- Throws:
IOException
-
peek
Description copied from interface:JsonStreamSourcePeek next token.- Specified by:
peekin interfaceJsonStreamSource- Returns:
- token
- Throws:
IOException
-
copy
Copy events to given target untilpeek() == JsonStreamToken.NONE. This method does not close streams.- Parameters:
target-- Throws:
IOException
-