Package net.schmizz.sshj.xfer
Interface FileTransfer
- All Known Implementing Classes:
SCPFileTransfer,SFTPFileTransfer
public interface FileTransfer
-
Method Summary
Modifier and TypeMethodDescriptionvoidThis is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g.voidThis is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g.voiddownload(String remotePath, LocalDestFile localFile) DownloadremotePathtolocalFile.voiddownload(String remotePath, LocalDestFile localFile, long byteOffset) DownloadremotePathtolocalFile.voidsetTransferListener(TransferListener listener) voidThis is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g.voidThis is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g.voidupload(LocalSourceFile localFile, String remotePath) UploadlocalFiletoremotePath.voidupload(LocalSourceFile localFile, String remotePath, long byteOffset) UploadlocalFiletoremotePath.
-
Method Details
-
upload
This is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile.- Parameters:
localPath-remotePath-- Throws:
IOException
-
upload
This is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Parameters:
localPath-remotePath-byteOffset-- Throws:
IOException
-
download
This is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile.- Parameters:
remotePath-localPath-- Throws:
IOException
-
download
This is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Parameters:
remotePath-localPath-byteOffset-- Throws:
IOException
-
upload
UploadlocalFiletoremotePath.- Parameters:
localFile-remotePath-- Throws:
IOException
-
upload
UploadlocalFiletoremotePath. Appends to existing ifbyteOffset> 0.- Parameters:
localFile-remotePath-byteOffset-- Throws:
IOException
-
download
DownloadremotePathtolocalFile.- Parameters:
remotePath-localFile-- Throws:
IOException
-
download
DownloadremotePathtolocalFile. Appends to existing ifbyteOffset> 0.- Parameters:
remotePath-localFile-byteOffset-- Throws:
IOException
-
getTransferListener
TransferListener getTransferListener() -
setTransferListener
-