Package net.schmizz.sshj.xfer
Interface FileTransfer
- All Known Implementing Classes:
SCPFileTransfer
,SFTPFileTransfer
public interface FileTransfer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is meant to delegate todownload(String, LocalDestFile)
with thelocalPath
wrapped as e.g.void
This is meant to delegate todownload(String, LocalDestFile)
with thelocalPath
wrapped as e.g.void
download
(String remotePath, LocalDestFile localFile) DownloadremotePath
tolocalFile
.void
download
(String remotePath, LocalDestFile localFile, long byteOffset) DownloadremotePath
tolocalFile
.void
setTransferListener
(TransferListener listener) void
This is meant to delegate toupload(LocalSourceFile, String)
with thelocalPath
wrapped as e.g.void
This is meant to delegate toupload(LocalSourceFile, String)
with thelocalPath
wrapped as e.g.void
upload
(LocalSourceFile localFile, String remotePath) UploadlocalFile
toremotePath
.void
upload
(LocalSourceFile localFile, String remotePath, long byteOffset) UploadlocalFile
toremotePath
.
-
Method Details
-
upload
This is meant to delegate toupload(LocalSourceFile, String)
with thelocalPath
wrapped as e.g. aFileSystemFile
.- Parameters:
localPath
-remotePath
-- Throws:
IOException
-
upload
This is meant to delegate toupload(LocalSourceFile, String)
with thelocalPath
wrapped 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 thelocalPath
wrapped as e.g. aFileSystemFile
.- Parameters:
remotePath
-localPath
-- Throws:
IOException
-
download
This is meant to delegate todownload(String, LocalDestFile)
with thelocalPath
wrapped as e.g. aFileSystemFile
. Appends to existing ifbyteOffset
> 0.- Parameters:
remotePath
-localPath
-byteOffset
-- Throws:
IOException
-
upload
UploadlocalFile
toremotePath
.- Parameters:
localFile
-remotePath
-- Throws:
IOException
-
upload
UploadlocalFile
toremotePath
. Appends to existing ifbyteOffset
> 0.- Parameters:
localFile
-remotePath
-byteOffset
-- Throws:
IOException
-
download
DownloadremotePath
tolocalFile
.- Parameters:
remotePath
-localFile
-- Throws:
IOException
-
download
DownloadremotePath
tolocalFile
. Appends to existing ifbyteOffset
> 0.- Parameters:
remotePath
-localFile
-byteOffset
-- Throws:
IOException
-
getTransferListener
TransferListener getTransferListener() -
setTransferListener
-