InternalAprInputBuffer.SocketInputBuffer (Apache Tomcat 7.0.104 API Documentation)

org.apache.coyote.http11

## Class InternalAprInputBuffer.SocketInputBuffer

- java.lang.Object
- - org.apache.coyote.http11.InternalAprInputBuffer.SocketInputBuffer

- All Implemented Interfaces:
    InputBuffer
  Enclosing class:
    InternalAprInputBuffer

      protected class InternalAprInputBuffer.SocketInputBuffer
      extends Object
      implements InputBuffer

  This class is an input buffer which will read its data from an input stream.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `InternalAprInputBuffer.SocketInputBuffer()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `doRead(ByteChunk chunk, Request req)` Read bytes into the specified chunk.

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

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

- - ### Constructor Detail

    - #### InternalAprInputBuffer.SocketInputBuffer

          protected InternalAprInputBuffer.SocketInputBuffer()

  - ### Method Detail

    - #### doRead

          public int doRead(ByteChunk chunk,
                   Request req)
                     throws IOException

      Read bytes into the specified chunk.
      Specified by:
        `doRead` in interface `InputBuffer`
      Parameters:
        `chunk` - The buffer to read data into.
        `req` - The associated request
      Returns:
        The number of bytes that have been added to the buffer or -1 for end of stream
      Throws:
        `IOException` - If an I/O error occurs reading from the input stream

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