Class 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 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
      • 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