UpgradeBioProcessor (Apache Tomcat 7.0.104 API Documentation)

org.apache.coyote.http11.upgrade

## Class UpgradeBioProcessor

- java.lang.Object
- - org.apache.coyote.http11.upgrade.UpgradeProcessor<Socket>
  - - org.apache.coyote.http11.upgrade.UpgradeBioProcessor

- All Implemented Interfaces:
    Processor<Socket>

  Deprecated.
  Will be removed in Tomcat 8.0.x.

      @Deprecated
      public class UpgradeBioProcessor
      extends UpgradeProcessor<Socket>

- - ### Field Summary

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

      `sm`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UpgradeBioProcessor(SocketWrapper<Socket> wrapper, UpgradeInbound upgradeInbound)` Deprecated.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `flush()` Deprecated.
    `int` | `read()` Deprecated. This is always a blocking read of a single byte.
    `int` | `read(boolean block, byte[] bytes, int off, int len)` Deprecated. Read up to len bytes from the input in either blocking or non-blocking mode (where non-blocking is supported).
    `void` | `write(byte[] b, int off, int len)` Deprecated.
    `void` | `write(int b)` Deprecated.

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

      `asyncDispatch, asyncPostProcess, errorDispatch, event, getAsyncStateMachine, getExecutor, getHttpUpgradeHandler, getRequest, getUpgradeInbound, isAsync, isComet, isUpgrade, process, recycle, setSslSupport, upgradeDispatch, upgradeDispatch`

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

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

- - ### Constructor Detail

    - #### UpgradeBioProcessor

          public UpgradeBioProcessor(SocketWrapper<Socket> wrapper,
                             UpgradeInbound upgradeInbound)
                              throws IOException

      Deprecated.
      Throws:
        `IOException`

  - ### Method Detail

    - #### flush

          public void flush()
                     throws IOException

      Deprecated.
      Specified by:
        `flush` in class `UpgradeProcessor<Socket>`
      Throws:
        `IOException`

    - #### write

          public void write(int b)
                     throws IOException

      Deprecated.
      Specified by:
        `write` in class `UpgradeProcessor<Socket>`
      Throws:
        `IOException`

    - #### write

          public void write(byte[] b,
                   int off,
                   int len)
                     throws IOException

      Deprecated.
      Specified by:
        `write` in class `UpgradeProcessor<Socket>`
      Throws:
        `IOException`

    - #### read

          public int read()
                   throws IOException

      Deprecated.
      Description copied from class: `UpgradeProcessor`
      This is always a blocking read of a single byte.
      Specified by:
        `read` in class `UpgradeProcessor<Socket>`
      Returns:
        The next byte or -1 if the end of the input is reached.
      Throws:
        `IOException` - If a problem occurs trying to read from the input

    - #### read

          public int read(boolean block,
                 byte[] bytes,
                 int off,
                 int len)
                   throws IOException

      Deprecated.
      Description copied from class: `UpgradeProcessor`
      Read up to len bytes from the input in either blocking or non-blocking mode (where non-blocking is supported). If the input does not support non-blocking reads, a blcoking read will be performed.
      Specified by:
        `read` in class `UpgradeProcessor<Socket>`
      Returns:
        The number of bytes read or -1 if the end of the input is reached. Non-blocking reads may return zero if no data is available. Blocking reads never return zero.
      Throws:
        `IOException` - If a problem occurs trying to read from the input

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