org.apache.http.impl.io
Class AbstractHttpDataTransmitter
java.lang.Object
org.apache.http.impl.io.AbstractHttpDataTransmitter
- All Implemented Interfaces:
- HttpDataTransmitter
- Direct Known Subclasses:
- SocketHttpDataTransmitter
- public abstract class AbstractHttpDataTransmitter
- extends java.lang.Object
- implements HttpDataTransmitter
Abstract base class for data transmitters using traditional IO.
- Author:
- Oleg Kalnichevski
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHttpDataTransmitter
public AbstractHttpDataTransmitter()
init
protected void init(java.io.OutputStream outstream,
int buffersize)
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 HttpDataTransmitter
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Specified by:
write
in interface HttpDataTransmitter
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Specified by:
write
in interface HttpDataTransmitter
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in interface HttpDataTransmitter
- Throws:
java.io.IOException
writeLine
public void writeLine(java.lang.String s)
throws java.io.IOException
- Specified by:
writeLine
in interface HttpDataTransmitter
- Throws:
java.io.IOException
writeLine
public void writeLine(CharArrayBuffer s)
throws java.io.IOException
- Specified by:
writeLine
in interface HttpDataTransmitter
- Throws:
java.io.IOException
reset
public void reset(HttpParams params)
- Specified by:
reset
in interface HttpDataTransmitter
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.