android.util
Class JsonWriter
java.lang.Object
android.util.JsonWriter
- All Implemented Interfaces:
- Closeable
public final class JsonWriter
- extends Object
- implements Closeable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonWriter
public JsonWriter(Writer out)
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.