Package com.caucho.hessian.io
Class Hessian2StreamingInput
- java.lang.Object
-
- com.caucho.hessian.io.Hessian2StreamingInput
-
public class Hessian2StreamingInput extends java.lang.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(java.io.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 void
close()
Close the output.void
endPacket()
Hessian2Input
getHessianInput()
boolean
isDataAvailable()
java.lang.Object
readObject()
Read the next objectvoid
setSerializerFactory(SerializerFactory factory)
Hessian2Input
startPacket()
-
-
-
Method Detail
-
setSerializerFactory
public void setSerializerFactory(SerializerFactory factory)
-
isDataAvailable
public boolean isDataAvailable()
-
startPacket
public Hessian2Input startPacket() throws java.io.IOException
- Throws:
java.io.IOException
-
endPacket
public void endPacket() throws java.io.IOException
- Throws:
java.io.IOException
-
getHessianInput
public Hessian2Input getHessianInput()
-
readObject
public java.lang.Object readObject() throws java.io.IOException
Read the next object- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
Close the output.- Throws:
java.io.IOException
-
-