public class HessianSerializerOutput extends HessianOutput
HessianOutput is unbuffered, so any client needs to provide its own buffering.
OutputStream os = new FileOutputStream("test.xml"); HessianOutput out = new HessianSerializerOutput(os); out.writeObject(obj); os.close();
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
os
_serializerFactory
Constructor and Description |
---|
HessianSerializerOutput()
Creates an uninitialized Hessian output stream.
|
HessianSerializerOutput(java.io.OutputStream os)
Creates a new Hessian output stream, initialized with an
underlying output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
writeObjectImpl(java.lang.Object obj)
Applications which override this can do custom serialization.
|
addRef, call, completeCall, completeReply, init, printLenString, printString, printString, printString, removeRef, replaceRef, resetReferences, setVersion, startCall, startCall, startReply, writeBoolean, writeByteBufferEnd, writeByteBufferPart, writeByteBufferStart, writeBytes, writeBytes, writeDouble, writeFault, writeHeader, writeInt, writeListBegin, writeListEnd, writeLong, writeMapBegin, writeMapEnd, writeMethod, writeNull, writeObject, writePlaceholder, writeRef, writeRemote, writeString, writeString, writeUTCDate
close, findSerializerFactory, flush, getSerializerFactory, setSerializerFactory, writeClassFieldLength, writeObjectBegin, writeObjectEnd
public HessianSerializerOutput(java.io.OutputStream os)
os
- the underlying output stream.public HessianSerializerOutput()