Class SftpFileObject.SftpOutputStream

All Implemented Interfaces:
Closeable, Flushable, 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 Details

    • channel

      private final com.jcraft.jsch.ChannelSftp channel
  • Constructor Details

    • SftpOutputStream

      public SftpOutputStream(com.jcraft.jsch.ChannelSftp channel, OutputStream out)
  • Method Details