public class JsonGenerator extends Object
OutputStream.| Constructor and Description |
|---|
JsonGenerator(OutputStream out) |
JsonGenerator(OutputStream out,
Charset charset) |
JsonGenerator(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
endObject() |
void |
flush() |
void |
startObject() |
void |
writeBoolean(boolean value) |
void |
writeEndArray() |
void |
writeFieldName(String fieldName) |
void |
writeNull() |
void |
writeNumber(double value) |
void |
writeNumber(long value) |
void |
writeStartArray() |
void |
writeString(String value) |
void |
writeStringEsc(char[] chs) |
public JsonGenerator(OutputStream out)
public JsonGenerator(OutputStream out, Charset charset)
public JsonGenerator(Writer writer)
public void startObject()
throws IOException
IOExceptionpublic void endObject()
throws IOException
IOExceptionpublic void writeFieldName(String fieldName) throws IOException
IOExceptionpublic void writeString(String value) throws IOException
IOExceptionpublic void writeStringEsc(char[] chs)
throws IOException
IOExceptionpublic void writeNumber(long value)
throws IOException
IOExceptionpublic void writeNumber(double value)
throws IOException
IOExceptionpublic void writeBoolean(boolean value)
throws IOException
IOExceptionpublic void writeNull()
throws IOException
IOExceptionpublic void writeStartArray()
throws IOException
IOExceptionpublic void writeEndArray()
throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionCopyright © 2018 WSO2. All rights reserved.