protected class Http11OutputBuffer.SocketOutputBuffer extends Object implements HttpOutputBuffer
Modifier | Constructor and Description |
---|---|
protected |
SocketOutputBuffer() |
Modifier and Type | Method and Description |
---|---|
int |
doWrite(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(ByteBuffer chunk) throws IOException
doWrite
in interface OutputBuffer
chunk
- data to writeIOException
- an underlying I/O error occurredpublic long getBytesWritten()
OutputBuffer
getBytesWritten
in interface OutputBuffer
public void end() throws IOException
HttpOutputBuffer
OutputBuffer.doWrite(java.nio.ByteBuffer)
during the execution of
this method.end
in interface HttpOutputBuffer
IOException
- If an I/O error occurs while writing to the clientpublic void flush() throws IOException
HttpOutputBuffer
flush
in interface HttpOutputBuffer
IOException
- If an I/O error occurs while flushingCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.