de.odysseus.staxon.json.stream.util
Class AutoPrimitiveTarget

java.lang.Object
  extended by de.odysseus.staxon.json.stream.util.StreamTargetDelegate
      extended by 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.


Constructor Summary
AutoPrimitiveTarget(JsonStreamTarget delegate, boolean convertAttributes)
           
 
Method Summary
 void name(String name)
          Write name.
 void value(Object value)
          Write value.
 
Methods inherited from class de.odysseus.staxon.json.stream.util.StreamTargetDelegate
close, endArray, endObject, flush, startArray, startObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoPrimitiveTarget

public AutoPrimitiveTarget(JsonStreamTarget delegate,
                           boolean convertAttributes)
Method Detail

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.