net.schmizz.sshj.xfer
Interface FileTransfer

All Known Implementing Classes:
SCPFileTransfer, SFTPFileTransfer

public interface FileTransfer


Method Summary
 void download(String remotePath, LocalDestFile localFile)
          Download remotePath to localFile.
 void download(String remotePath, String localPath)
          This is meant to delegate to download(String, LocalDestFile) with the localPath wrapped as e.g.
 TransferListener getTransferListener()
           
 void setTransferListener(TransferListener listener)
           
 void upload(LocalSourceFile localFile, String remotePath)
          Upload localFile to remotePath.
 void upload(String localPath, String remotePath)
          This is meant to delegate to upload(LocalSourceFile, String) with the localPath wrapped as e.g.
 

Method Detail

upload

void upload(String localPath,
            String remotePath)
            throws IOException
This is meant to delegate to upload(LocalSourceFile, String) with the localPath wrapped as e.g. a FileSystemFile.

Parameters:
localPath -
remotePath -
Throws:
IOException

download

void download(String remotePath,
              String localPath)
              throws IOException
This is meant to delegate to download(String, LocalDestFile) with the localPath wrapped as e.g. a FileSystemFile.

Parameters:
localPath -
remotePath -
Throws:
IOException

upload

void upload(LocalSourceFile localFile,
            String remotePath)
            throws IOException
Upload localFile to remotePath.

Attributes will be set on remotePath based on the localFile.

Parameters:
localFile -
remotePath -
Throws:
IOException

download

void download(String remotePath,
              LocalDestFile localFile)
              throws IOException
Download remotePath to localFile.

Attributes will be set on localFile based on the remotePath's attributes.

Parameters:
localFile -
remotePath -
Throws:
IOException

getTransferListener

TransferListener getTransferListener()

setTransferListener

void setTransferListener(TransferListener listener)


Copyright © 2009-2012. All Rights Reserved.