HttpOutputBuffer, OutputBufferprotected class Http11OutputBuffer.SocketOutputBuffer extends java.lang.Object implements HttpOutputBuffer
| Modifier | Constructor | Description |
|---|---|---|
protected |
SocketOutputBuffer() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
doWrite(java.nio.ByteBuffer chunk) |
Write chunk.
|
void |
end() |
Finish writing the current response.
|
void |
flush() |
Flushes any unwritten data to the client.
|
long |
getBytesWritten() |
Bytes written to the underlying socket.
|
public int doWrite(java.nio.ByteBuffer chunk)
throws java.io.IOException
doWrite in interface OutputBufferchunk - data to writejava.io.IOException - an underlying I/O error occurredpublic long getBytesWritten()
OutputBuffergetBytesWritten in interface OutputBufferpublic void end()
throws java.io.IOException
HttpOutputBufferOutputBuffer.doWrite(java.nio.ByteBuffer) during the execution of
this method.end in interface HttpOutputBufferjava.io.IOException - If an I/O error occurs while writing to the clientpublic void flush()
throws java.io.IOException
HttpOutputBufferflush in interface HttpOutputBufferjava.io.IOException - If an I/O error occurs while flushingCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.