Class StreamTargetDelegate
- java.lang.Object
-
- org.apache.synapse.commons.staxon.core.json.stream.util.StreamTargetDelegate
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,JsonStreamTarget
- Direct Known Subclasses:
AutoPrimitiveTarget,CustomRegexIgnoreAutoPrimitiveTarget,CustomRegexMatchReplaceIgnoreAutoPrimitiveTarget,RemoveRootTarget
public class StreamTargetDelegate extends Object implements JsonStreamTarget
Delegating stream target.
-
-
Constructor Summary
Constructors Constructor Description StreamTargetDelegate(JsonStreamTarget delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidendArray()End array.voidendObject()End object.voidflush()voidname(String name)Write name.voidstartArray()Start array.voidstartObject()Start objectvoidvalue(Object value)Write value.
-
-
-
Constructor Detail
-
StreamTargetDelegate
public StreamTargetDelegate(JsonStreamTarget delegate)
-
-
Method Detail
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
name
public void name(String name) throws IOException
Description copied from interface:JsonStreamTargetWrite name.- Specified by:
namein interfaceJsonStreamTarget- Throws:
IOException
-
value
public void value(Object value) throws IOException
Description copied from interface:JsonStreamTargetWrite value.- Specified by:
valuein interfaceJsonStreamTarget- Throws:
IOException
-
startObject
public void startObject() throws IOExceptionDescription copied from interface:JsonStreamTargetStart object- Specified by:
startObjectin interfaceJsonStreamTarget- Throws:
IOException
-
endObject
public void endObject() throws IOExceptionDescription copied from interface:JsonStreamTargetEnd object.- Specified by:
endObjectin interfaceJsonStreamTarget- Throws:
IOException
-
startArray
public void startArray() throws IOExceptionDescription copied from interface:JsonStreamTargetStart array.- Specified by:
startArrayin interfaceJsonStreamTarget- Throws:
IOException
-
endArray
public void endArray() throws IOExceptionDescription copied from interface:JsonStreamTargetEnd array.- Specified by:
endArrayin interfaceJsonStreamTarget- Throws:
IOException
-
-