- All Known Implementing Classes:
public interface OutputBufferOutput buffer. This class is used internally by the protocol implementation. All writes from higher level code should happen via Response.doWrite().
- Remy Maucherat
int doWrite(ByteBuffer chunk) throws IOExceptionWrite the given data to the response. The caller owns the chunks.
chunk- data to write
- The number of bytes written which may be less than available in the input chunk
IOException- an underlying I/O error occurred
long getBytesWritten()Bytes written to the underlying socket. This includes the effects of chunking, compression, etc.
- Bytes written for the current request