com.alibaba.fastjson
类 JSONWriter
java.lang.Object
com.alibaba.fastjson.JSONWriter
- 所有已实现的接口:
- Closeable, Flushable
public class JSONWriter
- extends Object
- implements Closeable, Flushable
JSONWriter
public JSONWriter(Writer out)
config
public void config(SerializerFeature feature,
boolean state)
startObject
public void startObject()
endObject
public void endObject()
writeKey
public void writeKey(String key)
writeValue
public void writeValue(Object object)
writeObject
public void writeObject(String object)
writeObject
public void writeObject(Object object)
startArray
public void startArray()
endArray
public void endArray()
flush
public void flush()
throws IOException
- 指定者:
- 接口
Flushable 中的 flush
- 抛出:
IOException
close
public void close()
throws IOException
- 指定者:
- 接口
Closeable 中的 close
- 抛出:
IOException
Copyright © 2012-2015 Alibaba Group. All Rights Reserved.