类 JSONWriter
- java.lang.Object
-
- com.alibaba.dubbo.common.json.JSONWriter
-
@Deprecated public class JSONWriter extends Object
已过时。JSON Writer.w.objectBegin().objectItem("name").valueString("qianlei").objectEnd() = {name:"qianlei"}.
-
-
构造器概要
构造器 构造器 说明 JSONWriter(OutputStream is, String charset)已过时。JSONWriter(Writer writer)已过时。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 JSONWriterarrayBegin()已过时。array begin.JSONWriterarrayEnd()已过时。array end, return array value.JSONWriterobjectBegin()已过时。object begin.JSONWriterobjectEnd()已过时。object end.JSONWriterobjectItem(String name)已过时。object item.JSONWritervalueBoolean(boolean value)已过时。value.JSONWritervalueDouble(double value)已过时。value.JSONWritervalueFloat(float value)已过时。value.JSONWritervalueInt(int value)已过时。value.JSONWritervalueLong(long value)已过时。value.JSONWritervalueNull()已过时。value.JSONWritervalueString(String value)已过时。value.
-
-
-
构造器详细资料
-
JSONWriter
public JSONWriter(Writer writer)
已过时。
-
JSONWriter
public JSONWriter(OutputStream is, String charset) throws UnsupportedEncodingException
已过时。
-
-
方法详细资料
-
objectBegin
public JSONWriter objectBegin() throws IOException
已过时。object begin.- 返回:
- this.
- 抛出:
IOException
-
objectEnd
public JSONWriter objectEnd() throws IOException
已过时。object end.- 返回:
- this.
- 抛出:
IOException
-
objectItem
public JSONWriter objectItem(String name) throws IOException
已过时。object item.- 参数:
name- name.- 返回:
- this.
- 抛出:
IOException
-
arrayBegin
public JSONWriter arrayBegin() throws IOException
已过时。array begin.- 返回:
- this.
- 抛出:
IOException
-
arrayEnd
public JSONWriter arrayEnd() throws IOException
已过时。array end, return array value.- 返回:
- this.
- 抛出:
IOException
-
valueNull
public JSONWriter valueNull() throws IOException
已过时。value.- 返回:
- this.
- 抛出:
IOException
-
valueString
public JSONWriter valueString(String value) throws IOException
已过时。value.- 参数:
value- value.- 返回:
- this.
- 抛出:
IOException
-
valueBoolean
public JSONWriter valueBoolean(boolean value) throws IOException
已过时。value.- 参数:
value- value.- 返回:
- this.
- 抛出:
IOException
-
valueInt
public JSONWriter valueInt(int value) throws IOException
已过时。value.- 参数:
value- value.- 返回:
- this.
- 抛出:
IOException
-
valueLong
public JSONWriter valueLong(long value) throws IOException
已过时。value.- 参数:
value- value.- 返回:
- this.
- 抛出:
IOException
-
valueFloat
public JSONWriter valueFloat(float value) throws IOException
已过时。value.- 参数:
value- value.- 返回:
- this.
- 抛出:
IOException
-
valueDouble
public JSONWriter valueDouble(double value) throws IOException
已过时。value.- 参数:
value- value.- 返回:
- this.
- 抛出:
IOException
-
-