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:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- SftpFileObject
private class SftpFileObject.SftpOutputStream extends MonitorOutputStream
An OutputStream that wraps an sftp OutputStream, and closes the channel when the stream is closed.
-
-
Field Summary
Fields Modifier and Type Field Description private com.jcraft.jsch.ChannelSftp
channel
-
Constructor Summary
Constructors Constructor Description SftpOutputStream(com.jcraft.jsch.ChannelSftp channel, java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onClose()
Called after this stream is closed.-
Methods inherited from class org.apache.commons.vfs2.util.MonitorOutputStream
assertOpen, close, flush, write, write, write
-
-
-
-
Method Detail
-
onClose
protected void onClose() throws java.io.IOException
Called after this stream is closed.- Overrides:
onClose
in classMonitorOutputStream
- Throws:
java.io.IOException
- if an error occurs.
-
-