Package net.schmizz.sshj.xfer.scp
Class SCPFileTransfer
- java.lang.Object
-
- net.schmizz.sshj.xfer.AbstractFileTransfer
-
- net.schmizz.sshj.xfer.scp.SCPFileTransfer
-
- All Implemented Interfaces:
FileTransfer
public class SCPFileTransfer extends AbstractFileTransfer implements FileTransfer
-
-
Field Summary
-
Fields inherited from class net.schmizz.sshj.xfer.AbstractFileTransfer
log, loggerFactory
-
-
Constructor Summary
Constructors Constructor Description SCPFileTransfer(SessionFactory sessionFactory, LoggerFactory loggerFactory)
-
Method Summary
Modifier and Type Method Description SCPFileTransferbandwidthLimit(int limit)voiddownload(java.lang.String remotePath, java.lang.String localPath)This is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g.voiddownload(java.lang.String remotePath, LocalDestFile localFile)DownloadremotePathtolocalFile.SCPDownloadClientnewSCPDownloadClient()SCPUploadClientnewSCPUploadClient()voidupload(java.lang.String localPath, java.lang.String remotePath)This is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g.voidupload(LocalSourceFile localFile, java.lang.String remotePath)UploadlocalFiletoremotePath.-
Methods inherited from class net.schmizz.sshj.xfer.AbstractFileTransfer
getTransferListener, setTransferListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.schmizz.sshj.xfer.FileTransfer
getTransferListener, setTransferListener
-
-
-
-
Constructor Detail
-
SCPFileTransfer
public SCPFileTransfer(SessionFactory sessionFactory, LoggerFactory loggerFactory)
-
-
Method Detail
-
newSCPDownloadClient
public SCPDownloadClient newSCPDownloadClient()
-
newSCPUploadClient
public SCPUploadClient newSCPUploadClient()
-
upload
public void upload(java.lang.String localPath, java.lang.String remotePath) throws java.io.IOExceptionDescription copied from interface:FileTransferThis is meant to delegate toFileTransfer.upload(LocalSourceFile, String)with thelocalPathwrapped as e.g. aFileSystemFile.- Specified by:
uploadin interfaceFileTransfer- Throws:
java.io.IOException
-
download
public void download(java.lang.String remotePath, java.lang.String localPath) throws java.io.IOExceptionDescription copied from interface:FileTransferThis is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g. aFileSystemFile.- Specified by:
downloadin interfaceFileTransfer- Throws:
java.io.IOException
-
download
public void download(java.lang.String remotePath, LocalDestFile localFile) throws java.io.IOExceptionDescription copied from interface:FileTransferDownloadremotePathtolocalFile.- Specified by:
downloadin interfaceFileTransfer- Throws:
java.io.IOException
-
upload
public void upload(LocalSourceFile localFile, java.lang.String remotePath) throws java.io.IOException
Description copied from interface:FileTransferUploadlocalFiletoremotePath.- Specified by:
uploadin interfaceFileTransfer- Throws:
java.io.IOException
-
bandwidthLimit
public SCPFileTransfer bandwidthLimit(int limit)
-
-