Class SftpFileObject.SftpOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
org.apache.commons.vfs2.util.MonitorOutputStream
org.apache.commons.vfs2.provider.sftp.SftpFileObject.SftpOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
SftpFileObject
An OutputStream that wraps an sftp OutputStream, and closes the channel when the stream is closed.
-
Field Summary
FieldsFields inherited from class java.io.BufferedOutputStream
buf, count
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.vfs2.util.MonitorOutputStream
assertOpen, close, flush, write, write, write
-
Field Details
-
channel
private final com.jcraft.jsch.ChannelSftp channel
-
-
Constructor Details
-
SftpOutputStream
-
-
Method Details
-
onClose
Called after this stream is closed.- Overrides:
onClose
in classMonitorOutputStream
- Throws:
IOException
- if an error occurs.
-