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