public class SCPFileTransfer extends AbstractFileTransfer implements FileTransfer
log, loggerFactory| Constructor and Description |
|---|
SCPFileTransfer(SessionFactory sessionFactory,
LoggerFactory loggerFactory) |
| Modifier and Type | Method and Description |
|---|---|
SCPFileTransfer |
bandwidthLimit(int limit) |
void |
download(java.lang.String remotePath,
LocalDestFile localFile)
Download
remotePath to localFile. |
void |
download(java.lang.String remotePath,
java.lang.String localPath)
This is meant to delegate to
FileTransfer.download(String, LocalDestFile) with the localPath wrapped as e.g. |
SCPDownloadClient |
newSCPDownloadClient() |
SCPUploadClient |
newSCPUploadClient() |
void |
upload(LocalSourceFile localFile,
java.lang.String remotePath)
Upload
localFile to remotePath. |
void |
upload(java.lang.String localPath,
java.lang.String remotePath)
This is meant to delegate to
FileTransfer.upload(LocalSourceFile, String) with the localPath wrapped as e.g. |
getTransferListener, setTransferListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransferListener, setTransferListenerpublic SCPFileTransfer(SessionFactory sessionFactory, LoggerFactory loggerFactory)
public SCPDownloadClient newSCPDownloadClient()
public SCPUploadClient newSCPUploadClient()
public void upload(java.lang.String localPath,
java.lang.String remotePath)
throws java.io.IOException
FileTransferFileTransfer.upload(LocalSourceFile, String) with the localPath wrapped as e.g.
a FileSystemFile.upload in interface FileTransferjava.io.IOExceptionpublic void download(java.lang.String remotePath,
java.lang.String localPath)
throws java.io.IOException
FileTransferFileTransfer.download(String, LocalDestFile) with the localPath wrapped as e.g.
a FileSystemFile.download in interface FileTransferjava.io.IOExceptionpublic void download(java.lang.String remotePath,
LocalDestFile localFile)
throws java.io.IOException
FileTransferremotePath to localFile.download in interface FileTransferjava.io.IOExceptionpublic void upload(LocalSourceFile localFile, java.lang.String remotePath) throws java.io.IOException
FileTransferlocalFile to remotePath.upload in interface FileTransferjava.io.IOExceptionpublic SCPFileTransfer bandwidthLimit(int limit)