Interface OutputBuffer

    • Method Detail

      • doWrite

        int doWrite​(java.nio.ByteBuffer chunk)
             throws java.io.IOException
        Write the given data to the response. The caller owns the chunks.
        Parameters:
        chunk - data to write
        Returns:
        The number of bytes written which may be less than available in the input chunk
        Throws:
        java.io.IOException - an underlying I/O error occurred
      • getBytesWritten

        long getBytesWritten()
        Bytes written to the underlying socket. This includes the effects of chunking, compression, etc.
        Returns:
        Bytes written for the current request