android.util
Class JsonWriter

java.lang.Object
  extended by android.util.JsonWriter
All Implemented Interfaces:
Closeable

public final class JsonWriter
extends Object
implements Closeable


Constructor Summary
JsonWriter(Writer out)
           
 
Method Summary
 JsonWriter beginArray()
           
 JsonWriter beginObject()
           
 void close()
           
 JsonWriter endArray()
           
 JsonWriter endObject()
           
 void flush()
           
 boolean isLenient()
           
 JsonWriter name(String name)
           
 JsonWriter nullValue()
           
 void setIndent(String indent)
           
 void setLenient(boolean lenient)
           
 JsonWriter value(boolean value)
           
 JsonWriter value(double value)
           
 JsonWriter value(long value)
           
 JsonWriter value(Number value)
           
 JsonWriter value(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonWriter

public JsonWriter(Writer out)
Method Detail

setIndent

public void setIndent(String indent)

setLenient

public void setLenient(boolean lenient)

isLenient

public boolean isLenient()

beginArray

public JsonWriter beginArray()
                      throws IOException
Throws:
IOException

endArray

public JsonWriter endArray()
                    throws IOException
Throws:
IOException

beginObject

public JsonWriter beginObject()
                       throws IOException
Throws:
IOException

endObject

public JsonWriter endObject()
                     throws IOException
Throws:
IOException

name

public JsonWriter name(String name)
                throws IOException
Throws:
IOException

value

public JsonWriter value(String value)
                 throws IOException
Throws:
IOException

nullValue

public JsonWriter nullValue()
                     throws IOException
Throws:
IOException

value

public JsonWriter value(boolean value)
                 throws IOException
Throws:
IOException

value

public JsonWriter value(double value)
                 throws IOException
Throws:
IOException

value

public JsonWriter value(long value)
                 throws IOException
Throws:
IOException

value

public JsonWriter value(Number value)
                 throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.