Class SCPFileTransfer
java.lang.Object
net.schmizz.sshj.xfer.AbstractFileTransfer
net.schmizz.sshj.xfer.scp.SCPFileTransfer
- All Implemented Interfaces:
FileTransfer
-
Field Summary
Fields inherited from class AbstractFileTransfer
log, loggerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbandwidthLimit(int limit) voidThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile.voidThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile.voiddownload(String remotePath, LocalDestFile localFile) DownloadremotePathtolocalFile.voiddownload(String remotePath, LocalDestFile localFile, long byteOffset) DownloadremotePathtolocalFile.voidThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile.voidThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile.voidupload(LocalSourceFile localFile, String remotePath) UploadlocalFiletoremotePath.voidupload(LocalSourceFile localFile, String remotePath, long byteOffset) UploadlocalFiletoremotePath.Methods inherited from class AbstractFileTransfer
getTransferListener, setTransferListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FileTransfer
getTransferListener, setTransferListener
-
Constructor Details
-
SCPFileTransfer
-
-
Method Details
-
newSCPDownloadClient
-
newSCPUploadClient
-
upload
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile.- Specified by:
uploadin interfaceFileTransfer- Parameters:
localPath-remotePath-- Throws:
IOException
-
upload
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Specified by:
uploadin interfaceFileTransfer- Parameters:
localFile-remotePath-byteOffset-- Throws:
IOException
-
download
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile.- Specified by:
downloadin interfaceFileTransfer- Parameters:
remotePath-localPath-- Throws:
IOException
-
download
Description copied from interface:FileTransferThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile. Appends to existing ifbyteOffset> 0.- Specified by:
downloadin interfaceFileTransfer- Parameters:
remotePath-localPath-byteOffset-- Throws:
IOException
-
download
Description copied from interface:FileTransferDownloadremotePathtolocalFile.- Specified by:
downloadin interfaceFileTransfer- Parameters:
remotePath-localFile-- Throws:
IOException
-
download
public void download(String remotePath, LocalDestFile localFile, long byteOffset) throws IOException Description copied from interface:FileTransferDownloadremotePathtolocalFile. Appends to existing ifbyteOffset> 0.- Specified by:
downloadin interfaceFileTransfer- Parameters:
remotePath-localFile-byteOffset-- Throws:
IOException
-
upload
Description copied from interface:FileTransferUploadlocalFiletoremotePath.- Specified by:
uploadin interfaceFileTransfer- Parameters:
localFile-remotePath-- Throws:
IOException
-
upload
public void upload(LocalSourceFile localFile, String remotePath, long byteOffset) throws IOException Description copied from interface:FileTransferUploadlocalFiletoremotePath. Appends to existing ifbyteOffset> 0.- Specified by:
uploadin interfaceFileTransfer- Parameters:
localFile-remotePath-byteOffset-- Throws:
IOException
-
bandwidthLimit
-