org.apache.wink.json4j.compat
Interface JSONWriter

All Known Subinterfaces:
JSONStringer
All Known Implementing Classes:
ApacheJSONStringerDelegate, ApacheJSONWriterDelegate

public interface JSONWriter


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 o)
           
 JSONWriter value(short s)
           
 

Method Detail

array

JSONWriter array()
                 throws IOException,
                        IllegalStateException
Throws:
IOException
IllegalStateException

endArray

JSONWriter endArray()
                    throws IOException,
                           IllegalStateException
Throws:
IOException
IllegalStateException

endObject

JSONWriter endObject()
                     throws IOException,
                            IllegalStateException
Throws:
IOException
IllegalStateException

key

JSONWriter key(String s)
               throws IOException,
                      IllegalStateException
Throws:
IOException
IllegalStateException

object

JSONWriter object()
                  throws IOException,
                         IllegalStateException
Throws:
IOException
IllegalStateException

value

JSONWriter value(boolean b)
                 throws IOException,
                        IllegalStateException
Throws:
IOException
IllegalStateException

value

JSONWriter value(double d)
                 throws IOException,
                        IllegalStateException
Throws:
IOException
IllegalStateException

value

JSONWriter value(long l)
                 throws IOException,
                        IllegalStateException
Throws:
IOException
IllegalStateException

value

JSONWriter value(short s)
                 throws IOException,
                        IllegalStateException
Throws:
IOException
IllegalStateException

value

JSONWriter value(Object o)
                 throws IOException,
                        IllegalStateException,
                        JSONException
Throws:
IOException
IllegalStateException
JSONException

close

void close()
           throws IOException,
                  IllegalStateException
Throws:
IOException
IllegalStateException

flush

JSONWriter flush()
                 throws IOException
Throws:
IOException


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