org.apache.http.impl.io
Class AbstractSessionOutputBuffer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSessionOutputBuffer
public AbstractSessionOutputBuffer()
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.