AprServletInputStream (Apache Tomcat 7.0.104 API Documentation)

org.apache.coyote.http11.upgrade

## Class AprServletInputStream

- java.lang.Object
- - java.io.InputStream
  - - javax.servlet.ServletInputStream
    - - org.apache.coyote.http11.upgrade.AbstractServletInputStream
      - - org.apache.coyote.http11.upgrade.AprServletInputStream

- All Implemented Interfaces:
    Closeable, AutoCloseable

      public class AprServletInputStream
      extends AbstractServletInputStream

- - ### Field Summary

    - ### Fields inherited from class org.apache.coyote.http11.upgrade.AbstractServletInputStream

      `sm`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AprServletInputStream(SocketWrapper<Long> wrapper)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `doClose()`
    `protected boolean` | `doIsReady()`
    `protected int` | `doRead(boolean block, byte[] b, int off, int len)` Abstract method to be overridden by concrete implementations.

    - ### Methods inherited from class org.apache.coyote.http11.upgrade.AbstractServletInputStream

      `close, isCloseRequired, isFinished, isReady, onAllDataRead, onDataAvailable, onError, read, read, readLine, setReadListener`

    - ### Methods inherited from class java.io.InputStream

      `available, mark, markSupported, read, reset, skip`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AprServletInputStream

          public AprServletInputStream(SocketWrapper<Long> wrapper)

  - ### Method Detail

    - #### doRead

          protected int doRead(boolean block,
                   byte[] b,
                   int off,
                   int len)
                        throws IOException

      Description copied from class: `AbstractServletInputStream`
      Abstract method to be overridden by concrete implementations. The base class will ensure that there are no concurrent calls to this method for the same socket.
      Specified by:
        `doRead` in class `AbstractServletInputStream`
      Throws:
        `IOException`

    - #### doIsReady

          protected boolean doIsReady()

      Specified by:
        `doIsReady` in class `AbstractServletInputStream`

    - #### doClose

          protected void doClose()
                          throws IOException

      Specified by:
        `doClose` in class `AbstractServletInputStream`
      Throws:
        `IOException`

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.