Build 1.0_r1(from source)

org.apache.http.impl.io
Class AbstractSessionOutputBuffer

java.lang.Object
  extended by org.apache.http.impl.io.AbstractSessionOutputBuffer
All Implemented Interfaces:
SessionOutputBuffer
Direct Known Subclasses:
SocketOutputBuffer

public abstract class AbstractSessionOutputBuffer
extends Object
implements SessionOutputBuffer

Abstract base class for session output buffers that stream data to an OutputStream.


Constructor Summary
AbstractSessionOutputBuffer()
           
 
Method Summary
 void flush()
           
protected  void flushBuffer()
           
 HttpTransportMetrics getMetrics()
           
protected  void init(OutputStream outstream, int buffersize, HttpParams params)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 void writeLine(CharArrayBuffer s)
           
 void writeLine(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSessionOutputBuffer

public AbstractSessionOutputBuffer()
Method Detail

init

protected void init(OutputStream outstream,
                    int buffersize,
                    HttpParams params)

flushBuffer

protected void flushBuffer()
                    throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface SessionOutputBuffer
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Specified by:
write in interface SessionOutputBuffer
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Specified by:
write in interface SessionOutputBuffer
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in interface SessionOutputBuffer
Throws:
IOException

writeLine

public void writeLine(String s)
               throws IOException
Specified by:
writeLine in interface SessionOutputBuffer
Throws:
IOException

writeLine

public void writeLine(CharArrayBuffer s)
               throws IOException
Specified by:
writeLine in interface SessionOutputBuffer
Throws:
IOException

getMetrics

public HttpTransportMetrics getMetrics()
Specified by:
getMetrics in interface SessionOutputBuffer

Build 1.0_r1(from source)

Please submit a feedback, bug or feature