Constructor and Description |
---|
JSONWriter(Writer out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
config(SerializerFeature feature,
boolean state) |
void |
endArray() |
void |
endObject() |
void |
flush() |
void |
startArray() |
void |
startObject() |
void |
writeEndArray()
Deprecated.
|
void |
writeEndObject()
Deprecated.
|
void |
writeKey(String key) |
void |
writeObject(Object object) |
void |
writeObject(String object) |
void |
writeStartArray()
Deprecated.
|
void |
writeStartObject()
Deprecated.
|
void |
writeValue(Object object) |
public JSONWriter(Writer out)
public void config(SerializerFeature feature, boolean state)
public void startObject()
public void endObject()
public void writeKey(String key)
public void writeValue(Object object)
public void writeObject(String object)
public void writeObject(Object object)
public void startArray()
public void endArray()
public void flush() throws IOException
flush
in interface Flushable
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
@Deprecated public void writeStartObject()
@Deprecated public void writeEndObject()
@Deprecated public void writeStartArray()
@Deprecated public void writeEndArray()
Copyright © 2012–2022 Alibaba Group. All rights reserved.