Class Overview
SessionOutputBuffer
implementation bound to a Socket.
The following parameters can be used to customize the behavior of this
class:
Summary
[Expand]
Inherited Methods |
From class
org.apache.http.impl.io.AbstractSessionOutputBuffer
int
|
available()
Returns available space in the buffer.
|
int
|
capacity()
Returns total capacity of the buffer
|
HttpTransportMetricsImpl
|
createTransportMetrics()
|
void
|
flush()
Flushes this session buffer and forces any buffered output bytes
to be written out.
|
void
|
flushBuffer()
|
HttpTransportMetrics
|
getMetrics()
|
void
|
init(OutputStream outstream, int buffersize, HttpParams params)
Initializes this session output buffer.
|
int
|
length()
Return length data stored in the buffer
|
void
|
write(int b)
Writes the specified byte to this session buffer.
|
void
|
write(byte[] b, int off, int len)
Writes len bytes from the specified byte array
starting at offset off to this session buffer.
|
void
|
write(byte[] b)
Writes b.length bytes from the specified byte array
to this session buffer.
|
void
|
writeLine(CharArrayBuffer s)
Writes characters from the specified char array followed by a line
delimiter to this session buffer.
|
void
|
writeLine(String s)
Writes characters from the specified string followed by a line delimiter
to this session buffer.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.apache.http.io.BufferInfo
abstract
int
|
available()
Returns available space in the buffer.
|
abstract
int
|
capacity()
Returns total capacity of the buffer
|
abstract
int
|
length()
Return length data stored in the buffer
|
|
From interface
org.apache.http.io.SessionOutputBuffer
abstract
void
|
flush()
Flushes this session buffer and forces any buffered output bytes
to be written out.
|
abstract
HttpTransportMetrics
|
getMetrics()
|
abstract
void
|
write(byte[] b, int off, int len)
Writes len bytes from the specified byte array
starting at offset off to this session buffer.
|
abstract
void
|
write(byte[] b)
Writes b.length bytes from the specified byte array
to this session buffer.
|
abstract
void
|
write(int b)
Writes the specified byte to this session buffer.
|
abstract
void
|
writeLine(CharArrayBuffer buffer)
Writes characters from the specified char array followed by a line
delimiter to this session buffer.
|
abstract
void
|
writeLine(String s)
Writes characters from the specified string followed by a line delimiter
to this session buffer.
|
|
Public Constructors
public
SocketOutputBuffer
(Socket socket, int buffersize, HttpParams params)
Creates an instance of this class.
Parameters
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
getSendBufferSize() . If resultant number is less
than 1024 it is set to 1024 . |
params
| HTTP parameters.
|