public class SCPFileTransfer extends AbstractFileTransfer implements FileTransfer
log, LOGGING_TRANSFER_LISTENER| Constructor and Description |
|---|
SCPFileTransfer(SessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
download(String remotePath,
LocalDestFile localFile)
Download
remotePath to localFile. |
void |
download(String remotePath,
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,
String remotePath)
Upload
localFile to remotePath. |
void |
upload(String localPath,
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)
public SCPDownloadClient newSCPDownloadClient()
public SCPUploadClient newSCPUploadClient()
public void upload(String localPath, String remotePath) throws IOException
FileTransferFileTransfer.upload(LocalSourceFile, String) with the localPath wrapped as e.g.
a FileSystemFile.upload in interface FileTransferIOExceptionpublic void download(String remotePath, String localPath) throws IOException
FileTransferFileTransfer.download(String, LocalDestFile) with the localPath wrapped as e.g.
a FileSystemFile.download in interface FileTransferIOExceptionpublic void download(String remotePath, LocalDestFile localFile) throws IOException
FileTransferremotePath to localFile.download in interface FileTransferIOExceptionpublic void upload(LocalSourceFile localFile, String remotePath) throws IOException
FileTransferlocalFile to remotePath.upload in interface FileTransferIOExceptionCopyright © 2009–2014. All rights reserved.