Class FtpFileObject.FtpInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.BufferedInputStream
-
- org.apache.commons.vfs2.util.MonitorInputStream
-
- org.apache.commons.vfs2.provider.ftp.FtpFileObject.FtpInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- FtpFileObject
class FtpFileObject.FtpInputStream extends MonitorInputStream
An InputStream that monitors for end-of-file.
-
-
Constructor Summary
Constructors Constructor Description FtpInputStream(FtpClient client, java.io.InputStream in)
FtpInputStream(FtpClient client, java.io.InputStream in, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
abort()
private boolean
isTransferAbortedOkReplyCode()
protected void
onClose()
Called after the stream has been closed.-
Methods inherited from class org.apache.commons.vfs2.util.MonitorInputStream
available, close, closeSuper, getCount, read, read
-
-
-
-
Field Detail
-
client
private final FtpClient client
-
-
Method Detail
-
abort
void abort() throws java.io.IOException
- Throws:
java.io.IOException
-
isTransferAbortedOkReplyCode
private boolean isTransferAbortedOkReplyCode() 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 classMonitorInputStream
- Throws:
java.io.IOException
- if an error occurs.
-
-