com.mindbright.ssh2
Class SSH2SFTPTransfer

java.lang.Object
  |
  +--com.mindbright.ssh2.SSH2SFTPTransfer
All Implemented Interfaces:
SSH2SFTP.AsyncListener, SSHFileTransfer

public class SSH2SFTPTransfer
extends java.lang.Object
implements SSHFileTransfer, SSH2SFTP.AsyncListener


Constructor Summary
SSH2SFTPTransfer(java.io.File cwd, SSH2Connection connection)
           
 
Method Summary
 void abort()
           
 void copyToLocal(java.lang.String localFile, java.lang.String[] remoteFiles, boolean recursive)
           
 void copyToRemote(java.lang.String[] localFiles, java.lang.String remoteFile, boolean recursive)
           
 void progress(long size)
           
 void setProgress(SSHFileTransferProgress progress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSH2SFTPTransfer

public SSH2SFTPTransfer(java.io.File cwd,
                        SSH2Connection connection)
                 throws SSH2Exception
Method Detail

setProgress

public void setProgress(SSHFileTransferProgress progress)
Specified by:
setProgress in interface SSHFileTransfer

copyToRemote

public void copyToRemote(java.lang.String[] localFiles,
                         java.lang.String remoteFile,
                         boolean recursive)
                  throws java.io.IOException
Specified by:
copyToRemote in interface SSHFileTransfer
java.io.IOException

copyToLocal

public void copyToLocal(java.lang.String localFile,
                        java.lang.String[] remoteFiles,
                        boolean recursive)
                 throws java.io.IOException
Specified by:
copyToLocal in interface SSHFileTransfer
java.io.IOException

abort

public void abort()
Specified by:
abort in interface SSHFileTransfer

progress

public void progress(long size)
Specified by:
progress in interface SSH2SFTP.AsyncListener