Build m5-rc15

org.apache.http.conn
Class EofSensorInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.http.conn.EofSensorInputStream
All Implemented Interfaces:
Closeable, ConnectionReleaseTrigger

public class EofSensorInputStream
extends InputStream
implements ConnectionReleaseTrigger


Field Summary
protected  InputStream wrappedStream
           
 
Constructor Summary
EofSensorInputStream(InputStream in, EofSensorWatcher watcher)
           
 
Method Summary
 void abortConnection()
           
 int available()
           
protected  void checkAbort()
           
protected  void checkClose()
           
protected  void checkEOF(int eof)
           
 void close()
           
protected  boolean isReadAllowed()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void releaseConnection()
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wrappedStream

protected InputStream wrappedStream
Constructor Detail

EofSensorInputStream

public EofSensorInputStream(InputStream in,
                            EofSensorWatcher watcher)
Method Detail

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

Build m5-rc15

Please submit a feedback, bug or feature