com.xebialabs.xltype.serialization.json
Class JsonWriter

java.lang.Object
  extended by com.xebialabs.xltype.serialization.json.JsonWriter

public class JsonWriter
extends java.lang.Object

Wraps Jettison's JSONWriter, but does not throw checked exceptions. All JSONExceptions are wrapped by a link SerializationExceptions.


Constructor Summary
JsonWriter()
           
JsonWriter(java.io.Writer writer)
           
 
Method Summary
 JsonWriter array()
           
 JsonWriter endArray()
           
 JsonWriter endObject()
           
 java.io.Writer getWriter()
           
 JsonWriter key(java.lang.String s)
           
 JsonWriter object()
           
 java.lang.String toString()
           
 JsonWriter value(boolean b)
           
 JsonWriter value(double b)
           
 JsonWriter value(long b)
           
 JsonWriter value(java.lang.Object b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonWriter

public JsonWriter()

JsonWriter

public JsonWriter(java.io.Writer writer)
Method Detail

getWriter

public java.io.Writer getWriter()

array

public JsonWriter array()

endArray

public JsonWriter endArray()

endObject

public JsonWriter endObject()

key

public JsonWriter key(java.lang.String s)

object

public JsonWriter object()

value

public JsonWriter value(boolean b)

value

public JsonWriter value(double b)

value

public JsonWriter value(long b)

value

public JsonWriter value(java.lang.Object b)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object