org.apache.http.conn
Class EofSensorInputStream
java.lang.Object
java.io.InputStream
org.apache.http.conn.EofSensorInputStream
- All Implemented Interfaces:
- Closeable, ConnectionReleaseTrigger
public class EofSensorInputStream
- extends InputStream
- implements ConnectionReleaseTrigger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wrappedStream
protected InputStream wrappedStream
EofSensorInputStream
public EofSensorInputStream(InputStream in,
EofSensorWatcher watcher)
isReadAllowed
protected boolean isReadAllowed()
throws IOException
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
checkEOF
protected void checkEOF(int eof)
throws IOException
- Throws:
IOException
checkClose
protected void checkClose()
throws IOException
- Throws:
IOException
checkAbort
protected void checkAbort()
throws IOException
- Throws:
IOException
releaseConnection
public void releaseConnection()
throws IOException
- Specified by:
releaseConnection in interface ConnectionReleaseTrigger
- Throws:
IOException
abortConnection
public void abortConnection()
throws IOException
- Specified by:
abortConnection in interface ConnectionReleaseTrigger
- Throws:
IOException
Please submit a feedback, bug or feature