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 java.lang.Object
implements SessionOutputBuffer

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

Author:
Oleg Kalnichevski

Constructor Summary
AbstractSessionOutputBuffer()
           
 
Method Summary
 void flush()
           
protected  void flushBuffer()
           
 HttpTransportMetrics getMetrics()
           
protected  void init(java.io.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(java.lang.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(java.io.OutputStream outstream,
                    int buffersize,
                    HttpParams params)

flushBuffer

protected void flushBuffer()
                    throws java.io.IOException
Throws:
java.io.IOException

flush

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

write

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

write

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

write

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

writeLine

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

writeLine

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

getMetrics

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


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.