public class InternalOutputBuffer extends AbstractOutputBuffer<java.net.Socket> implements ByteChunk.ByteOutputChannel
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | InternalOutputBuffer.OutputStreamOutputBufferThis class is an output buffer which will write data to an output
stream. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected java.io.OutputStream | outputStreamUnderlying output stream. | 
activeFilters, buf, byteCount, committed, filterLibrary, finished, lastActiveFilter, outputStreamOutputBuffer, pos, response, sm| Constructor and Description | 
|---|
| InternalOutputBuffer(Response response,
int headerBufferSize)Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | commit()Commit the response. | 
| void | endRequest()End request. | 
| void | flush()Flush the response. | 
| void | init(SocketWrapper<java.net.Socket> socketWrapper,
AbstractEndpoint<java.net.Socket> endpoint) | 
| void | nextRequest()End processing of current HTTP request. | 
| void | realWriteBytes(byte[] cbuf,
int off,
int len)Callback to write data from the buffer. | 
| void | recycle()Recycle the output buffer. | 
| void | sendAck()Send an acknowledgment. | 
| void | setSocketBuffer(int socketBufferSize)Set the socket buffer size. | 
addActiveFilter, addFilter, doWrite, endHeaders, getBytesWritten, getFilters, reset, sendHeader, sendStatus, write, write, write, write, write, writeprotected java.io.OutputStream outputStream
public InternalOutputBuffer(Response response, int headerBufferSize)
public void setSocketBuffer(int socketBufferSize)
public void init(SocketWrapper<java.net.Socket> socketWrapper, AbstractEndpoint<java.net.Socket> endpoint) throws java.io.IOException
init in class AbstractOutputBuffer<java.net.Socket>java.io.IOExceptionpublic void flush()
           throws java.io.IOException
flush in class AbstractOutputBuffer<java.net.Socket>java.io.IOException - an underlying I/O error occurredpublic void recycle()
recycle in class AbstractOutputBuffer<java.net.Socket>public void nextRequest()
nextRequest in class AbstractOutputBuffer<java.net.Socket>public void endRequest()
                throws java.io.IOException
endRequest in class AbstractOutputBuffer<java.net.Socket>java.io.IOException - an underlying I/O error occurredpublic void sendAck()
             throws java.io.IOException
sendAck in class AbstractOutputBuffer<java.net.Socket>java.io.IOExceptionprotected void commit()
               throws java.io.IOException
commit in class AbstractOutputBuffer<java.net.Socket>java.io.IOException - an underlying I/O error occurredpublic void realWriteBytes(byte[] cbuf,
                  int off,
                  int len)
                    throws java.io.IOException
realWriteBytes in interface ByteChunk.ByteOutputChanneljava.io.IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.