|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.common.json.JSONWriter
public class JSONWriter
JSON Writer. w.objectBegin().objectItem("name").valueString("qianlei").objectEnd() = {name:"qianlei"}.
| Constructor Summary | |
|---|---|
JSONWriter(OutputStream is,
String charset)
|
|
JSONWriter(Writer writer)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONWriter(Writer writer)
public JSONWriter(OutputStream is,
String charset)
throws UnsupportedEncodingException
UnsupportedEncodingException| Method Detail |
|---|
public JSONWriter objectBegin()
throws IOException
IOException.
IOException
public JSONWriter objectEnd()
throws IOException
IOException.
IOException
public JSONWriter objectItem(String name)
throws IOException
name - name.
IOException.
IOException
public JSONWriter arrayBegin()
throws IOException
IOException.
IOException
public JSONWriter arrayEnd()
throws IOException
IOException.
IOException
public JSONWriter valueNull()
throws IOException
IOException.
IOException
public JSONWriter valueString(String value)
throws IOException
value - value.
IOException
public JSONWriter valueBoolean(boolean value)
throws IOException
value - value.
IOException
public JSONWriter valueInt(int value)
throws IOException
value - value.
IOException
public JSONWriter valueLong(long value)
throws IOException
value - value.
IOException
public JSONWriter valueFloat(float value)
throws IOException
value - value.
IOException
public JSONWriter valueDouble(double value)
throws IOException
value - value.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||