public class SocketOutputBuffer extends AbstractSessionOutputBuffer
SessionOutputBuffer
implementation bound to a Socket
.Constructor and Description |
---|
SocketOutputBuffer(java.net.Socket socket,
int buffersize,
HttpParams params)
Creates an instance of this class.
|
flush, flushBuffer, getMetrics, init, write, write, write, writeLine, writeLine
public SocketOutputBuffer(java.net.Socket socket, int buffersize, HttpParams params) throws java.io.IOException
The following HTTP parameters affect the initialization:
The CoreProtocolPNames.HTTP_ELEMENT_CHARSET
parameter determines the charset to be used for encoding HTTP lines. If
not specified, US-ASCII
will be used per default.
socket
- the socket to write data to.buffersize
- the size of the internal buffer. If this number is less
than 0
it is set to the value of
Socket.getSendBufferSize()
. If resultant number is less
than 1024
it is set to 1024
.params
- HTTP parameters.java.io.IOException
CoreProtocolPNames.HTTP_ELEMENT_CHARSET