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 |
serialize(BValue json) |
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
IOException
public void endObject() throws IOException
IOException
public void writeFieldName(String fieldName) throws IOException
IOException
public void writeString(String value) throws IOException
IOException
public void writeStringEsc(char[] chs) throws IOException
IOException
public void writeNumber(long value) throws IOException
IOException
public void writeNumber(double value) throws IOException
IOException
public void writeBoolean(boolean value) throws IOException
IOException
public void writeNull() throws IOException
IOException
public void writeStartArray() throws IOException
IOException
public void writeEndArray() throws IOException
IOException
public void flush() throws IOException
IOException
public void serialize(BValue json) throws IOException
IOException
Copyright © 2018 WSO2. All rights reserved.