com.caucho.hessian.io
Class HessianSerializerOutput
public class HessianSerializerOutput
Output stream for Hessian requests.
HessianOutput is unbuffered, so any client needs to provide
its own buffering.
Serialization
OutputStream os = new FileOutputStream("test.xml");
HessianOutput out = new HessianSerializerOutput(os);
out.writeObject(obj);
os.close();
Writing an RPC Call
OutputStream os = ...; // from http connection
HessianOutput out = new HessianSerializerOutput(os);
String value;
out.startCall("hello"); // start hello call
out.writeString("arg1"); // write a string argument
out.completeCall(); // complete the call
void | writeObjectImpl(Object obj)- Applications which override this can do custom serialization.
|
addRef, call, completeCall, completeReply, init, printLenString, printString, printString, printString, removeRef, replaceRef, startCall, startReply, writeBoolean, writeByteBufferEnd, writeByteBufferPart, writeBytes, writeBytes, writeDouble, writeFault, writeHeader, writeInt, writeListBegin, writeListEnd, writeLong, writeMapBegin, writeMapEnd, writeNull, writeObject, writePlaceholder, writeRef, writeRemote, writeString, writeString, writeUTCDate |
addRef, completeCall, init, removeRef, replaceRef, setSerializerFactory, startCall, writeBoolean, writeByteBufferEnd, writeByteBufferPart, writeBytes, writeBytes, writeDouble, writeInt, writeListBegin, writeListEnd, writeLong, writeMapBegin, writeMapEnd, writeNull, writeObject, writeRef, writeRemote, writeString, writeString, writeUTCDate |
HessianSerializerOutput
public HessianSerializerOutput()
Creates an uninitialized Hessian output stream.
HessianSerializerOutput
public HessianSerializerOutput(OutputStream os)
Creates a new Hessian output stream, initialized with an
underlying output stream.
os - the underlying output stream.
writeObjectImpl
public void writeObjectImpl(Object obj)
throws IOException Applications which override this can do custom serialization.