Package com.caucho.hessian.io
Class Hessian2StreamingInput
- java.lang.Object
-
- com.caucho.hessian.io.Hessian2StreamingInput
-
public class Hessian2StreamingInput extends Object
Input stream for Hessian 2 streaming requests using WebSocket. For best performance, use HessianFactory:HessianFactory factory = new HessianFactory(); Hessian2StreamingInput hIn = factory.createHessian2StreamingInput(is);
-
-
Constructor Summary
Constructors Constructor Description Hessian2StreamingInput(InputStream is)Creates a new Hessian input stream, initialized with an underlying input stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the output.voidendPacket()Hessian2InputgetHessianInput()booleanisDataAvailable()ObjectreadObject()Read the next objectvoidsetSerializerFactory(SerializerFactory factory)Hessian2InputstartPacket()
-
-
-
Constructor Detail
-
Hessian2StreamingInput
public Hessian2StreamingInput(InputStream is)
Creates a new Hessian input stream, initialized with an underlying input stream.- Parameters:
is- the underlying output stream.
-
-
Method Detail
-
setSerializerFactory
public void setSerializerFactory(SerializerFactory factory)
-
isDataAvailable
public boolean isDataAvailable()
-
startPacket
public Hessian2Input startPacket() throws IOException
- Throws:
IOException
-
endPacket
public void endPacket() throws IOException- Throws:
IOException
-
getHessianInput
public Hessian2Input getHessianInput()
-
readObject
public Object readObject() throws IOException
Read the next object- Throws:
IOException
-
close
public void close() throws IOExceptionClose the output.- Throws:
IOException
-
-