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(java.lang.String s)
           
 JSONWriter object()
           
 JSONWriter value(boolean b)
           
 JSONWriter value(double d)
           
 JSONWriter value(long l)
           
 JSONWriter value(java.lang.Object o)
           
 JSONWriter value(short s)
           
 

Method Detail

array

JSONWriter array()
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

endArray

JSONWriter endArray()
                    throws java.io.IOException,
                           java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

endObject

JSONWriter endObject()
                     throws java.io.IOException,
                            java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

key

JSONWriter key(java.lang.String s)
               throws java.io.IOException,
                      java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

object

JSONWriter object()
                  throws java.io.IOException,
                         java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

value

JSONWriter value(boolean b)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

value

JSONWriter value(double d)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

value

JSONWriter value(long l)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

value

JSONWriter value(short s)
                 throws java.io.IOException,
                        java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

value

JSONWriter value(java.lang.Object o)
                 throws java.io.IOException,
                        java.lang.IllegalStateException,
                        JSONException
Throws:
java.io.IOException
java.lang.IllegalStateException
JSONException

close

void close()
           throws java.io.IOException,
                  java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

flush

JSONWriter flush()
                 throws java.io.IOException
Throws:
java.io.IOException


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