com.caucho.hessian.io
Class Hessian2StreamingInput

java.lang.Object
  extended by 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
Hessian2StreamingInput(java.io.InputStream is)
          Creates a new Hessian input stream, initialized with an underlying input stream.
 
Method Summary
 void close()
          Close the output.
 void endPacket()
           
 Hessian2Input getHessianInput()
           
 boolean isDataAvailable()
           
 java.lang.Object readObject()
          Read the next object
 void setSerializerFactory(SerializerFactory factory)
           
 Hessian2Input startPacket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hessian2StreamingInput

public Hessian2StreamingInput(java.io.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 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