de.odysseus.staxon.json.stream.util
Class AutoPrimitiveTarget
java.lang.Object
de.odysseus.staxon.json.stream.util.StreamTargetDelegate
de.odysseus.staxon.json.stream.util.AutoPrimitiveTarget
- All Implemented Interfaces:
- JsonStreamTarget, Closeable, Flushable
public class AutoPrimitiveTarget
- extends StreamTargetDelegate
Target-filter to auto-convert string values to primitive (boolean, number, null) values.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoPrimitiveTarget
public AutoPrimitiveTarget(JsonStreamTarget delegate,
boolean convertAttributes)
name
public void name(String name)
throws IOException
- Description copied from interface:
JsonStreamTarget
- Write name.
- Specified by:
name in interface JsonStreamTarget- Overrides:
name in class StreamTargetDelegate
- Throws:
IOException
value
public void value(Object value)
throws IOException
- Description copied from interface:
JsonStreamTarget
- Write value.
- Specified by:
value in interface JsonStreamTarget- Overrides:
value in class StreamTargetDelegate
- Throws:
IOException
Copyright © 2011-2012. All Rights Reserved.