Package net.schmizz.sshj.xfer
Interface FileTransfer
-
- All Known Implementing Classes:
SCPFileTransfer,SFTPFileTransfer
public interface FileTransfer
-
-
Method Summary
Modifier and Type Method Description voiddownload(java.lang.String remotePath, java.lang.String localPath)This is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g.voiddownload(java.lang.String remotePath, LocalDestFile localFile)DownloadremotePathtolocalFile.TransferListenergetTransferListener()voidsetTransferListener(TransferListener listener)voidupload(java.lang.String localPath, java.lang.String remotePath)This is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g.voidupload(LocalSourceFile localFile, java.lang.String remotePath)UploadlocalFiletoremotePath.
-
-
-
Method Detail
-
upload
void upload(java.lang.String localPath, java.lang.String remotePath) throws java.io.IOExceptionThis is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile.- Parameters:
localPath-remotePath-- Throws:
java.io.IOException
-
download
void download(java.lang.String remotePath, java.lang.String localPath) throws java.io.IOExceptionThis is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile.- Parameters:
localPath-remotePath-- Throws:
java.io.IOException
-
upload
void upload(LocalSourceFile localFile, java.lang.String remotePath) throws java.io.IOException
UploadlocalFiletoremotePath.- Parameters:
localFile-remotePath-- Throws:
java.io.IOException
-
download
void download(java.lang.String remotePath, LocalDestFile localFile) throws java.io.IOExceptionDownloadremotePathtolocalFile.- Parameters:
localFile-remotePath-- Throws:
java.io.IOException
-
getTransferListener
TransferListener getTransferListener()
-
setTransferListener
void setTransferListener(TransferListener listener)
-
-