org.apache.commons.vfs.provider.sftp
Class SftpFileObject.SftpOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.BufferedOutputStream
              extended by org.apache.commons.vfs.util.MonitorOutputStream
                  extended by org.apache.commons.vfs.provider.sftp.SftpFileObject.SftpOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
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
private  com.jcraft.jsch.ChannelSftp channel
           
 
Fields inherited from class java.io.BufferedOutputStream
buf, count
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
SftpFileObject.SftpOutputStream(com.jcraft.jsch.ChannelSftp channel)
           
 
Method Summary
protected  void onClose()
          Called after this stream is closed.
 
Methods inherited from class org.apache.commons.vfs.util.MonitorOutputStream
close
 
Methods inherited from class java.io.BufferedOutputStream
flush, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

private final com.jcraft.jsch.ChannelSftp channel
Constructor Detail

SftpFileObject.SftpOutputStream

public SftpFileObject.SftpOutputStream(com.jcraft.jsch.ChannelSftp channel)
Method Detail

onClose

protected void onClose()
                throws java.io.IOException
Called after this stream is closed.

Overrides:
onClose in class MonitorOutputStream
Throws:
java.io.IOException