Top Description Methods
org.apache.coyote

public Interface OutputBuffer

Known Direct Subinterfaces
org.apache.coyote.http11.HttpOutputBuffer
Known Direct Implementers
org.apache.coyote.ajp.AjpProcessor.SocketOutputBuffer
Imports
java.io.IOException, java.nio.ByteBuffer

Output buffer. This class is used internally by the protocol implementation. All writes from higher level code should happen via Response.doWrite().
Author
Remy Maucherat

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The number of bytes written which may be less than available in the input chunk
doWrite
(ByteBuffer
data to write
chunk
)

Write the given data to the response.

public long

Returns:

Bytes written for the current request
getBytesWritten
()

Bytes written to the underlying socket.

Method Detail

doWriteback to summary
public int doWrite(ByteBuffer chunk) throws IOException

Write the given data to the response. The caller owns the chunks.

Parameters
chunk:ByteBuffer

data to write

Returns:int

The number of bytes written which may be less than available in the input chunk

Exceptions
IOException:
an underlying I/O error occurred
getBytesWrittenback to summary
public long getBytesWritten()

Bytes written to the underlying socket. This includes the effects of chunking, compression, etc.

Returns:long

Bytes written for the current request