com.alibaba.dubbo.common.json
Class JSONWriter

java.lang.Object
  extended by com.alibaba.dubbo.common.json.JSONWriter

Deprecated.

@Deprecated
public class JSONWriter
extends Object

JSON Writer.

w.objectBegin().objectItem("name").valueString("qianlei").objectEnd() = {name:"qianlei"}.

Author:
qian.lei

Constructor Summary
JSONWriter(OutputStream is, String charset)
          Deprecated.  
JSONWriter(Writer writer)
          Deprecated.  
 
Method Summary
 JSONWriter arrayBegin()
          Deprecated. array begin.
 JSONWriter arrayEnd()
          Deprecated. array end, return array value.
 JSONWriter objectBegin()
          Deprecated. object begin.
 JSONWriter objectEnd()
          Deprecated. object end.
 JSONWriter objectItem(String name)
          Deprecated. object item.
 JSONWriter valueBoolean(boolean value)
          Deprecated. value.
 JSONWriter valueDouble(double value)
          Deprecated. value.
 JSONWriter valueFloat(float value)
          Deprecated. value.
 JSONWriter valueInt(int value)
          Deprecated. value.
 JSONWriter valueLong(long value)
          Deprecated. value.
 JSONWriter valueNull()
          Deprecated. value.
 JSONWriter valueString(String value)
          Deprecated. value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONWriter

public JSONWriter(Writer writer)
Deprecated. 

JSONWriter

public JSONWriter(OutputStream is,
                  String charset)
           throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException
Method Detail

objectBegin

public JSONWriter objectBegin()
                       throws IOException
Deprecated. 
object begin.

Returns:
this.
Throws:
IOException.
IOException

objectEnd

public JSONWriter objectEnd()
                     throws IOException
Deprecated. 
object end.

Returns:
this.
Throws:
IOException.
IOException

objectItem

public JSONWriter objectItem(String name)
                      throws IOException
Deprecated. 
object item.

Parameters:
name - name.
Returns:
this.
Throws:
IOException.
IOException

arrayBegin

public JSONWriter arrayBegin()
                      throws IOException
Deprecated. 
array begin.

Returns:
this.
Throws:
IOException.
IOException

arrayEnd

public JSONWriter arrayEnd()
                    throws IOException
Deprecated. 
array end, return array value.

Returns:
this.
Throws:
IOException.
IOException

valueNull

public JSONWriter valueNull()
                     throws IOException
Deprecated. 
value.

Returns:
this.
Throws:
IOException.
IOException

valueString

public JSONWriter valueString(String value)
                       throws IOException
Deprecated. 
value.

Parameters:
value - value.
Returns:
this.
Throws:
IOException

valueBoolean

public JSONWriter valueBoolean(boolean value)
                        throws IOException
Deprecated. 
value.

Parameters:
value - value.
Returns:
this.
Throws:
IOException

valueInt

public JSONWriter valueInt(int value)
                    throws IOException
Deprecated. 
value.

Parameters:
value - value.
Returns:
this.
Throws:
IOException

valueLong

public JSONWriter valueLong(long value)
                     throws IOException
Deprecated. 
value.

Parameters:
value - value.
Returns:
this.
Throws:
IOException

valueFloat

public JSONWriter valueFloat(float value)
                      throws IOException
Deprecated. 
value.

Parameters:
value - value.
Returns:
this.
Throws:
IOException

valueDouble

public JSONWriter valueDouble(double value)
                       throws IOException
Deprecated. 
value.

Parameters:
value - value.
Returns:
this.
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.