org.apache.wink.json4j.compat.impl
Class ApacheJSONWriterDelegate

java.lang.Object
  extended by org.apache.wink.json4j.compat.impl.ApacheJSONWriterDelegate
All Implemented Interfaces:
JSONWriter
Direct Known Subclasses:
ApacheJSONStringerDelegate

public class ApacheJSONWriterDelegate
extends java.lang.Object
implements JSONWriter


Field Summary
protected  JSONWriter delegate
           
protected  java.io.Writer writer
           
 
Constructor Summary
ApacheJSONWriterDelegate(java.io.Writer writer)
           
 
Method Summary
 JSONWriter array()
           
 void close()
           
 JSONWriter endArray()
           
 JSONWriter endObject()
           
 JSONWriter flush()
           
 JSONWriter key(java.lang.String s)
           
 JSONWriter object()
           
 JSONWriter value(boolean b)
           
 JSONWriter value(double d)
           
 JSONWriter value(long l)
           
 JSONWriter value(java.lang.Object obj)
           
 JSONWriter value(short s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected JSONWriter delegate

writer

protected java.io.Writer writer
Constructor Detail

ApacheJSONWriterDelegate

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

object

public JSONWriter object()
                  throws java.io.IOException,
                         java.lang.IllegalStateException
Specified by:
object in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

array

public JSONWriter array()
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Specified by:
array in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

endArray

public JSONWriter endArray()
                    throws java.io.IOException,
                           java.lang.IllegalStateException
Specified by:
endArray in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

endObject

public JSONWriter endObject()
                     throws java.io.IOException,
                            java.lang.IllegalStateException
Specified by:
endObject in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

key

public JSONWriter key(java.lang.String s)
               throws java.io.IOException,
                      java.lang.IllegalStateException
Specified by:
key in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

value

public JSONWriter value(boolean b)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Specified by:
value in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

value

public JSONWriter value(double d)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Specified by:
value in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

value

public JSONWriter value(long l)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Specified by:
value in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

value

public JSONWriter value(short s)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Specified by:
value in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

value

public JSONWriter value(java.lang.Object obj)
                 throws java.io.IOException,
                        java.lang.IllegalStateException,
                        JSONException
Specified by:
value in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException
JSONException

close

public void close()
           throws java.io.IOException,
                  java.lang.IllegalStateException
Specified by:
close in interface JSONWriter
Throws:
java.io.IOException
java.lang.IllegalStateException

flush

public JSONWriter flush()
                 throws java.io.IOException
Specified by:
flush in interface JSONWriter
Throws:
java.io.IOException


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.