Package com.caucho.hessian.io
Class Hessian2StreamingInput
java.lang.Object
com.caucho.hessian.io.Hessian2StreamingInput
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
ConstructorsConstructorDescriptionCreates a new Hessian input stream, initialized with an underlying input stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the output.void
boolean
Read the next objectvoid
setSerializerFactory
(SerializerFactory factory)
-
Constructor Details
-
Hessian2StreamingInput
Creates a new Hessian input stream, initialized with an underlying input stream.- Parameters:
is
- the underlying output stream.
-
-
Method Details
-
setSerializerFactory
-
isDataAvailable
public boolean isDataAvailable() -
startPacket
- Throws:
IOException
-
endPacket
- Throws:
IOException
-
getHessianInput
-
readObject
Read the next object- Throws:
IOException
-
close
Close the output.- Throws:
IOException
-