Class AutoPrimitiveTarget
- java.lang.Object
-
- org.apache.synapse.commons.staxon.core.json.stream.util.StreamTargetDelegate
-
- org.apache.synapse.commons.staxon.core.json.stream.util.AutoPrimitiveTarget
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,JsonStreamTarget
public class AutoPrimitiveTarget extends StreamTargetDelegate
Target-filter to auto-convert string values to primitive (boolean, number, null) values.
-
-
Constructor Summary
Constructors Constructor Description AutoPrimitiveTarget(JsonStreamTarget delegate, boolean convertAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidname(String name)Write name.voidvalue(Object value)Write value.-
Methods inherited from class org.apache.synapse.commons.staxon.core.json.stream.util.StreamTargetDelegate
close, endArray, endObject, flush, startArray, startObject
-
-
-
-
Constructor Detail
-
AutoPrimitiveTarget
public AutoPrimitiveTarget(JsonStreamTarget delegate, boolean convertAttributes)
-
-
Method Detail
-
name
public void name(String name) throws IOException
Description copied from interface:JsonStreamTargetWrite name.- Specified by:
namein interfaceJsonStreamTarget- Overrides:
namein classStreamTargetDelegate- Throws:
IOException
-
value
public void value(Object value) throws IOException
Description copied from interface:JsonStreamTargetWrite value.- Specified by:
valuein interfaceJsonStreamTarget- Overrides:
valuein classStreamTargetDelegate- Throws:
IOException
-
-