@Deprecated public class JSONWriter extends Object
w.objectBegin().objectItem("name").valueString("qianlei").objectEnd() = {name:"qianlei"}.
| 构造器和说明 |
|---|
JSONWriter(OutputStream is,
String charset)
已过时。
|
JSONWriter(Writer writer)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
JSONWriter |
arrayBegin()
已过时。
array begin.
|
JSONWriter |
arrayEnd()
已过时。
array end, return array value.
|
JSONWriter |
objectBegin()
已过时。
object begin.
|
JSONWriter |
objectEnd()
已过时。
object end.
|
JSONWriter |
objectItem(String name)
已过时。
object item.
|
JSONWriter |
valueBoolean(boolean value)
已过时。
value.
|
JSONWriter |
valueDouble(double value)
已过时。
value.
|
JSONWriter |
valueFloat(float value)
已过时。
value.
|
JSONWriter |
valueInt(int value)
已过时。
value.
|
JSONWriter |
valueLong(long value)
已过时。
value.
|
JSONWriter |
valueNull()
已过时。
value.
|
JSONWriter |
valueString(String value)
已过时。
value.
|
public JSONWriter(Writer writer)
public JSONWriter(OutputStream is, String charset) throws UnsupportedEncodingException
public JSONWriter objectBegin() throws IOException
IOExceptionpublic JSONWriter objectEnd() throws IOException
IOExceptionpublic JSONWriter objectItem(String name) throws IOException
name - name.IOExceptionpublic JSONWriter arrayBegin() throws IOException
IOExceptionpublic JSONWriter arrayEnd() throws IOException
IOExceptionpublic JSONWriter valueNull() throws IOException
IOExceptionpublic JSONWriter valueString(String value) throws IOException
value - value.IOExceptionpublic JSONWriter valueBoolean(boolean value) throws IOException
value - value.IOExceptionpublic JSONWriter valueInt(int value) throws IOException
value - value.IOExceptionpublic JSONWriter valueLong(long value) throws IOException
value - value.IOExceptionpublic JSONWriter valueFloat(float value) throws IOException
value - value.IOExceptionpublic JSONWriter valueDouble(double value) throws IOException
value - value.IOExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.