public class JsonOutput
extends java.lang.Object
OutputStream os = ...; // from http connection AbstractOutput out = new HessianSerializerOutput(os); String value; out.startCall("hello"); // start hello call out.writeString("arg1"); // write a string argument out.completeCall(); // complete the call
Constructor and Description |
---|
JsonOutput() |
JsonOutput(java.io.PrintWriter os) |
JsonOutput(WriteStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
flushBuffer() |
void |
init(java.io.PrintWriter os)
Initialize the output with a new underlying stream.
|
void |
writeArrayBegin() |
void |
writeArrayComma() |
void |
writeArrayEnd() |
void |
writeBoolean(boolean value) |
void |
writeDouble(double value) |
void |
writeLong(long value) |
void |
writeMapBegin() |
void |
writeMapComma() |
void |
writeMapEnd() |
void |
writeMapEntry(java.lang.String key,
java.lang.Object value) |
void |
writeMapEntry(java.lang.String key,
java.lang.Object value,
boolean annotated) |
void |
writeNull() |
void |
writeObject(java.lang.Object value) |
void |
writeObject(java.lang.Object value,
boolean annotated) |
void |
writeString(char[] v,
int offset,
int length) |
void |
writeString(java.lang.String v) |
public JsonOutput()
public JsonOutput(java.io.PrintWriter os)
public JsonOutput(WriteStream out)
public void init(java.io.PrintWriter os)
public void writeObject(java.lang.Object value) throws java.io.IOException
java.io.IOException
public void writeObject(java.lang.Object value, boolean annotated) throws java.io.IOException
java.io.IOException
public void writeNull() throws java.io.IOException
java.io.IOException
public void writeBoolean(boolean value) throws java.io.IOException
java.io.IOException
public void writeLong(long value) throws java.io.IOException
java.io.IOException
public void writeDouble(double value) throws java.io.IOException
java.io.IOException
public void writeString(java.lang.String v) throws java.io.IOException
java.io.IOException
public void writeString(char[] v, int offset, int length) throws java.io.IOException
java.io.IOException
public void writeArrayBegin() throws java.io.IOException
java.io.IOException
public void writeArrayComma() throws java.io.IOException
java.io.IOException
public void writeArrayEnd() throws java.io.IOException
java.io.IOException
public void writeMapBegin() throws java.io.IOException
java.io.IOException
public void writeMapComma() throws java.io.IOException
java.io.IOException
public void writeMapEntry(java.lang.String key, java.lang.Object value) throws java.io.IOException
java.io.IOException
public void writeMapEntry(java.lang.String key, java.lang.Object value, boolean annotated) throws java.io.IOException
java.io.IOException
public void writeMapEnd() throws java.io.IOException
java.io.IOException
public void flushBuffer() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException