org.apache.commons.vfs.provider.ftp
Class FtpFileObject.FtpInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by org.apache.commons.vfs.util.MonitorInputStream
                  extended by org.apache.commons.vfs.provider.ftp.FtpFileObject.FtpInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
FtpFileObject

 class FtpFileObject.FtpInputStream
extends MonitorInputStream

An InputStream that monitors for end-of-file.


Field Summary
private  FtpClient client
           
 
Fields inherited from class java.io.BufferedInputStream
buf, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FtpFileObject.FtpInputStream(FtpClient client, java.io.InputStream in)
           
 
Method Summary
(package private)  void abort()
           
protected  void onClose()
          Called after the stream has been closed.
 
Methods inherited from class org.apache.commons.vfs.util.MonitorInputStream
close, getCount, read, read
 
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private final FtpClient client
Constructor Detail

FtpFileObject.FtpInputStream

public FtpFileObject.FtpInputStream(FtpClient client,
                                    java.io.InputStream in)
Method Detail

abort

void abort()
     throws java.io.IOException
Throws:
java.io.IOException

onClose

protected void onClose()
                throws java.io.IOException
Called after the stream has been closed.

Overrides:
onClose in class MonitorInputStream
Throws:
java.io.IOException