Class SftpFileObject.SftpInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.BufferedInputStream
-
- org.apache.commons.vfs2.util.MonitorInputStream
-
- org.apache.commons.vfs2.provider.sftp.SftpFileObject.SftpInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- SftpFileObject
private class SftpFileObject.SftpInputStream extends MonitorInputStream
An InputStream that monitors for end-of-file.
-
-
Field Summary
Fields Modifier and Type Field Description private com.jcraft.jsch.ChannelSftp
channel
-
Constructor Summary
Constructors Constructor Description SftpInputStream(com.jcraft.jsch.ChannelSftp channel, java.io.InputStream in)
SftpInputStream(com.jcraft.jsch.ChannelSftp channel, java.io.InputStream in, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
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.
-
-