Package org.apache.http.impl.io
Class AbstractSessionInputBuffer
java.lang.Object
org.apache.http.impl.io.AbstractSessionInputBuffer
- All Implemented Interfaces:
SessionInputBuffer
- Direct Known Subclasses:
SocketInputBuffer
public abstract class AbstractSessionInputBuffer extends Object implements SessionInputBuffer
Abstract base class for session input buffers that stream data
from a
InputStream.- Author:
- Oleg Kalnichevski
-
Constructor Summary
Constructors Constructor Description AbstractSessionInputBuffer() -
Method Summary
Modifier and Type Method Description protected intfillBuffer()HttpTransportMetricsgetMetrics()protected booleanhasBufferedData()protected voidinit(InputStream instream, int buffersize, HttpParams params)intread()intread(byte[] b)intread(byte[] b, int off, int len)StringreadLine()intreadLine(CharArrayBuffer charbuffer)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.http.io.SessionInputBuffer
isDataAvailable
-
Constructor Details
-
AbstractSessionInputBuffer
public AbstractSessionInputBuffer()
-
-
Method Details
-
init
-
fillBuffer
- Throws:
IOException
-
hasBufferedData
protected boolean hasBufferedData() -
read
- Specified by:
readin interfaceSessionInputBuffer- Throws:
IOException
-
read
- Specified by:
readin interfaceSessionInputBuffer- Throws:
IOException
-
read
- Specified by:
readin interfaceSessionInputBuffer- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceSessionInputBuffer- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceSessionInputBuffer- Throws:
IOException
-
getMetrics
- Specified by:
getMetricsin interfaceSessionInputBuffer
-