public class DataWriterJSON extends AbstractDataWriter
DataWriter
for a JSON stream.flushable, state
Constructor and Description |
---|
DataWriterJSON(OutputStream os)
Creates a new
DataWriter on the given OutputStream . |
Modifier and Type | Method and Description |
---|---|
void |
writeArrayValueEnd0() |
void |
writeArrayValueStart0() |
void |
writeBooleanValue0(boolean value) |
void |
writeDoubleValue0(double value) |
void |
writeIntKey0(int key) |
void |
writeIntValue0(int value) |
void |
writeLongValue0(long value) |
void |
writeMapValueEnd0() |
void |
writeMapValueStart0() |
void |
writeStringKey0(String key) |
void |
writeStringValue0(String value) |
end, writeArrayValueEnd, writeArrayValueStart, writeBooleanValue, writeDoubleValue, writeIntKey, writeIntValue, writeLongValue, writeMapValueEnd, writeMapValueStart, writeStringKey, writeStringValue
public DataWriterJSON(OutputStream os)
DataWriter
on the given OutputStream
.
The OutputStream
is automatically flushed when the data has been fully written.
os
- the OutputStream
to which the JSON structured data is written.public void writeArrayValueEnd0() throws Throwable
writeArrayValueEnd0
in class AbstractDataWriter
Throwable
public void writeArrayValueStart0() throws Throwable
writeArrayValueStart0
in class AbstractDataWriter
Throwable
public void writeBooleanValue0(boolean value) throws Throwable
writeBooleanValue0
in class AbstractDataWriter
Throwable
public void writeDoubleValue0(double value) throws Throwable
writeDoubleValue0
in class AbstractDataWriter
Throwable
public void writeIntKey0(int key) throws Throwable
writeIntKey0
in class AbstractDataWriter
Throwable
public void writeIntValue0(int value) throws Throwable
writeIntValue0
in class AbstractDataWriter
Throwable
public void writeLongValue0(long value) throws Throwable
writeLongValue0
in class AbstractDataWriter
Throwable
public void writeMapValueEnd0() throws Throwable
writeMapValueEnd0
in class AbstractDataWriter
Throwable
public void writeMapValueStart0() throws Throwable
writeMapValueStart0
in class AbstractDataWriter
Throwable
public void writeStringKey0(String key) throws Throwable
writeStringKey0
in class AbstractDataWriter
Throwable
public void writeStringValue0(String value) throws Throwable
writeStringValue0
in class AbstractDataWriter
Throwable