Class SocketInputBuffer

    • Constructor Detail

      • SocketInputBuffer

        public SocketInputBuffer​(java.net.Socket socket,
                                 int buffersize,
                                 HttpParams params)
                          throws java.io.IOException
        Deprecated.
        Creates an instance of this class.
        Parameters:
        socket - the socket to read data from.
        buffersize - the size of the internal buffer. If this number is less than 0 it is set to the value of Socket.getReceiveBufferSize(). If resultant number is less than 1024 it is set to 1024.
        params - HTTP parameters.
        Throws:
        java.io.IOException
    • Method Detail

      • isDataAvailable

        public boolean isDataAvailable​(int timeout)
                                throws java.io.IOException
        Deprecated.
        Description copied from interface: SessionInputBuffer
        Blocks until some data becomes available in the session buffer or the given timeout period in milliseconds elapses. If the timeout value is 0 this method blocks indefinitely.
        Specified by:
        isDataAvailable in interface SessionInputBuffer
        Parameters:
        timeout - in milliseconds.
        Returns:
        true if some data is available in the session buffer or false otherwise.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • isEof

        public boolean isEof()
        Deprecated.
        Specified by:
        isEof in interface EofSensor