Package org.apache.coyote
Interface OutputBuffer
- 
- All Known Subinterfaces:
- HttpOutputBuffer,- OutputFilter
 - All Known Implementing Classes:
- AjpProcessor.SocketOutputBuffer,- ChunkedOutputFilter,- GzipOutputFilter,- Http11OutputBuffer,- Http11OutputBuffer.SocketOutputBuffer,- Http2OutputBuffer,- IdentityOutputFilter,- VoidOutputFilter
 
 public interface OutputBufferOutput 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 SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intdoWrite(java.nio.ByteBuffer chunk)Write the given data to the response.intdoWrite(ByteChunk chunk)Deprecated.Unused.longgetBytesWritten()Bytes written to the underlying socket.
 
- 
- 
- 
Method Detail- 
doWrite@Deprecated int doWrite(ByteChunk chunk) throws java.io.IOException Deprecated.Unused. Will be removed in Tomcat 9. UsedoWrite(ByteBuffer)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
 
 - 
doWriteint doWrite(java.nio.ByteBuffer chunk) throws java.io.IOExceptionWrite 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
 
 - 
getBytesWrittenlong getBytesWritten() Bytes written to the underlying socket. This includes the effects of chunking, compression, etc.- Returns:
- Bytes written for the current request
 
 
- 
 
-