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, java.lang.String localPath, long byteOffset)This is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g.voiddownload(java.lang.String remotePath, LocalDestFile localFile)DownloadremotePathtolocalFile.voiddownload(java.lang.String remotePath, LocalDestFile localFile, long byteOffset)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(java.lang.String localPath, java.lang.String remotePath, long byteOffset)This is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g.voidupload(LocalSourceFile localFile, java.lang.String remotePath)UploadlocalFiletoremotePath.voidupload(LocalSourceFile localFile, java.lang.String remotePath, long byteOffset)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
-
upload
void upload(java.lang.String localPath, java.lang.String remotePath, long byteOffset) throws java.io.IOExceptionThis is meant to delegate toupload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Parameters:
localPath-remotePath-byteOffset-- 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
-
download
void download(java.lang.String remotePath, java.lang.String localPath, long byteOffset) throws java.io.IOExceptionThis is meant to delegate todownload(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Parameters:
localPath-remotePath-byteOffset-- 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
-
upload
void upload(LocalSourceFile localFile, java.lang.String remotePath, long byteOffset) throws java.io.IOException
UploadlocalFiletoremotePath. Appends to existing ifbyteOffset> 0.- Parameters:
localFile-remotePath-byteOffset-- Throws:
java.io.IOException
-
download
void download(java.lang.String remotePath, LocalDestFile localFile) throws java.io.IOExceptionDownloadremotePathtolocalFile.- Parameters:
localFile-remotePath-- Throws:
java.io.IOException
-
download
void download(java.lang.String remotePath, LocalDestFile localFile, long byteOffset) throws java.io.IOExceptionDownloadremotePathtolocalFile. Appends to existing ifbyteOffset> 0.- Parameters:
localFile-remotePath-byteOffset-- Throws:
java.io.IOException
-
getTransferListener
TransferListener getTransferListener()
-
setTransferListener
void setTransferListener(TransferListener listener)
-
-