public interface

FileTransfer

net.schmizz.sshj.xfer.FileTransfer
Known Indirect Subclasses

Summary

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

Public Methods

public abstract void download (String remotePath, String localPath)

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

Parameters
remotePath
localPath
Throws
IOException

public abstract void download (String remotePath, LocalDestFile localFile)

Download remotePath to localFile.

Parameters
remotePath
localFile
Throws
IOException

public abstract TransferListener getTransferListener ()

public abstract void setTransferListener (TransferListener listener)

Parameters
listener

public abstract void upload (LocalSourceFile localFile, String remotePath)

Upload localFile to remotePath.

Parameters
localFile
remotePath
Throws
IOException

public abstract void upload (String localPath, String remotePath)

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

Parameters
localPath
remotePath
Throws
IOException