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 Object
implements JSONWriter


Field Summary
protected  JSONWriter delegate
           
protected  Writer writer
           
 
Constructor Summary
ApacheJSONWriterDelegate(Writer writer)
           
 
Method Summary
 JSONWriter array()
           
 void close()
           
 JSONWriter endArray()
           
 JSONWriter endObject()
           
 JSONWriter flush()
           
 JSONWriter key(String s)
           
 JSONWriter object()
           
 JSONWriter value(boolean b)
           
 JSONWriter value(double d)
           
 JSONWriter value(long l)
           
 JSONWriter value(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 Writer writer
Constructor Detail

ApacheJSONWriterDelegate

public ApacheJSONWriterDelegate(Writer writer)
Method Detail

object

public JSONWriter object()
                  throws IOException,
                         IllegalStateException
Specified by:
object in interface JSONWriter
Throws:
IOException
IllegalStateException

array

public JSONWriter array()
                 throws IOException,
                        IllegalStateException
Specified by:
array in interface JSONWriter
Throws:
IOException
IllegalStateException

endArray

public JSONWriter endArray()
                    throws IOException,
                           IllegalStateException
Specified by:
endArray in interface JSONWriter
Throws:
IOException
IllegalStateException

endObject

public JSONWriter endObject()
                     throws IOException,
                            IllegalStateException
Specified by:
endObject in interface JSONWriter
Throws:
IOException
IllegalStateException

key

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

value

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

value

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

value

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

value

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

value

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

close

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

flush

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


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