Class InputBuffer

All Implemented Interfaces:
Closeable, AutoCloseable, Readable, ByteChunk.ByteInputChannel, ApplicationBufferHandler

public class InputBuffer extends Reader implements ByteChunk.ByteInputChannel, ApplicationBufferHandler
The buffer used by Tomcat request. This is a derivative of the Tomcat 3.3 OutputBuffer, adapted to handle input instead of output. This allows complete recycling of the facade objects (the ServletInputStream and the BufferedReader).
Remy Maucherat
  • Field Details

  • Constructor Details

    • InputBuffer

      public InputBuffer()
      Default constructor. Allocate the buffer with the default buffer size.
    • InputBuffer

      public InputBuffer(int size)
      Alternate constructor which allows specifying the initial buffer size.
      size - Buffer size to use
  • Method Details