Package com.caucho.hessian.io
Class Hessian2StreamingOutput
- java.lang.Object
-
- com.caucho.hessian.io.Hessian2StreamingOutput
-
public class Hessian2StreamingOutput extends Object
Output stream for Hessian 2 streaming requests.
-
-
Constructor Summary
Constructors Constructor Description Hessian2StreamingOutput(Hessian2Output out)Hessian2StreamingOutput(OutputStream os)Creates a new Hessian output stream, initialized with an underlying output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the output.voidflush()Flushes the output.Hessian2OutputgetHessian2Output()booleanisCloseStreamOnClose()voidsetCloseStreamOnClose(boolean isClose)voidwriteObject(Object object)Writes any object to the output stream.
-
-
-
Constructor Detail
-
Hessian2StreamingOutput
public Hessian2StreamingOutput(OutputStream os)
Creates a new Hessian output stream, initialized with an underlying output stream.- Parameters:
os- the underlying output stream.
-
Hessian2StreamingOutput
public Hessian2StreamingOutput(Hessian2Output out)
-
-
Method Detail
-
getHessian2Output
public Hessian2Output getHessian2Output()
-
setCloseStreamOnClose
public void setCloseStreamOnClose(boolean isClose)
-
isCloseStreamOnClose
public boolean isCloseStreamOnClose()
-
writeObject
public void writeObject(Object object) throws IOException
Writes any object to the output stream.- Throws:
IOException
-
flush
public void flush() throws IOExceptionFlushes the output.- Throws:
IOException
-
close
public void close() throws IOExceptionClose the output.- Throws:
IOException
-
-