InternalNioOutputBuffer (Apache Tomcat 7.0.96 API Documentation)

org.apache.coyote.http11

## Class InternalNioOutputBuffer

- java.lang.Object
- - org.apache.coyote.http11.AbstractOutputBuffer<NioChannel>
  - - org.apache.coyote.http11.InternalNioOutputBuffer

- All Implemented Interfaces:
    OutputBuffer

      public class InternalNioOutputBuffer
      extends AbstractOutputBuffer<NioChannel>

  Output buffer.
  Author:
    Remy Maucherat, Filip Hanik

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `InternalNioOutputBuffer.SocketOutputBuffer` This class is an output buffer which will write data to an output stream.

  - ### Field Summary

    - ### Fields inherited from class org.apache.coyote.http11.AbstractOutputBuffer

      `activeFilters, buf, byteCount, committed, filterLibrary, finished, lastActiveFilter, outputStreamOutputBuffer, pos, response, sm`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InternalNioOutputBuffer(Response response, int headerBufferSize)` Default constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `commit()` Commit the response.
    `void` | `endRequest()` End request.
    `void` | `flush()` Flush the response.
    `void` | `init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint<NioChannel> endpoint)`
    `void` | `recycle()` Recycle the output buffer.
    `void` | `sendAck()` Send an acknowledgment.

    - ### Methods inherited from class org.apache.coyote.http11.AbstractOutputBuffer

      `addActiveFilter, addFilter, doWrite, endHeaders, getBytesWritten, getFilters, nextRequest, reset, sendHeader, sendStatus, write, write, write, write, write, write`

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

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

- - ### Constructor Detail

    - #### InternalNioOutputBuffer

          public InternalNioOutputBuffer(Response response,
                                 int headerBufferSize)

      Default constructor.

  - ### Method Detail

    - #### flush

          public void flush()
                     throws java.io.IOException

      Flush the response.
      Overrides:
        `flush` in class `AbstractOutputBuffer<NioChannel>`
      Throws:
        `java.io.IOException` - an underlying I/O error occurred

    - #### recycle

          public void recycle()

      Recycle the output buffer. This should be called when closing the connection.
      Overrides:
        `recycle` in class `AbstractOutputBuffer<NioChannel>`

    - #### endRequest

          public void endRequest()
                          throws java.io.IOException

      End request.
      Overrides:
        `endRequest` in class `AbstractOutputBuffer<NioChannel>`
      Throws:
        `java.io.IOException` - an underlying I/O error occurred

    - #### sendAck

          public void sendAck()
                       throws java.io.IOException

      Send an acknowledgment.
      Specified by:
        `sendAck` in class `AbstractOutputBuffer<NioChannel>`
      Throws:
        `java.io.IOException`

    - #### init

          public void init(SocketWrapper<NioChannel> socketWrapper,
                  AbstractEndpoint<NioChannel> endpoint)
                    throws java.io.IOException

      Specified by:
        `init` in class `AbstractOutputBuffer<NioChannel>`
      Throws:
        `java.io.IOException`

    - #### commit

          protected void commit()
                         throws java.io.IOException

      Commit the response.
      Specified by:
        `commit` in class `AbstractOutputBuffer<NioChannel>`
      Throws:
        `java.io.IOException` - an underlying I/O error occurred

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