Package javax.servlet

Class ServletInputStream

    • Constructor Detail

      • ServletInputStream

        protected ServletInputStream()
        Constructor.
    • Method Detail

      • isFinished

        public abstract boolean isFinished()
        Is the stream at the end.
        Returns:
        true if it is, false otherwise.
      • isReady

        public abstract boolean isReady()
        Is the stream ready for reading.
        Returns:
        true if it is, false otherwise.
      • readLine

        public int readLine​(byte[] buffer,
                            int offset,
                            int length)
                     throws IOException
        Read a line.
        Parameters:
        buffer - the buffer.
        offset - the offset.
        length - the length.
        Returns:
        the number of bytes read.
        Throws:
        IOException - when an I/O error occurs.
      • setReadListener

        public abstract void setReadListener​(ReadListener readListener)
        Set the read listener.
        Parameters:
        readListener - the read listener.