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:
Closeable
,AutoCloseable
- Enclosing class:
SftpFileObject
An InputStream that monitors for end-of-file.
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionSftpInputStream
(com.jcraft.jsch.ChannelSftp channel, InputStream in) SftpInputStream
(com.jcraft.jsch.ChannelSftp channel, InputStream in, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Methods inherited from class java.io.BufferedInputStream
mark, markSupported, reset, skip
Methods inherited from class java.io.FilterInputStream
read
-
Field Details
-
channel
private final com.jcraft.jsch.ChannelSftp channel
-
-
Constructor Details
-
SftpInputStream
-
SftpInputStream
-
-
Method Details
-
onClose
Called after the stream has been closed.- Overrides:
onClose
in classMonitorInputStream
- Throws:
IOException
- if an error occurs.
-