Package net.schmizz.sshj.sftp
Class SFTPFileTransfer
- java.lang.Object
-
- net.schmizz.sshj.xfer.AbstractFileTransfer
-
- net.schmizz.sshj.sftp.SFTPFileTransfer
-
- All Implemented Interfaces:
FileTransfer
public class SFTPFileTransfer extends AbstractFileTransfer implements FileTransfer
-
-
Field Summary
-
Fields inherited from class net.schmizz.sshj.xfer.AbstractFileTransfer
log, loggerFactory
-
-
Constructor Summary
Constructors Constructor Description SFTPFileTransfer(SFTPEngine engine)
-
Method Summary
Modifier and Type Method Description voiddownload(java.lang.String source, java.lang.String dest)This is meant to delegate toFileTransfer.download(String, LocalDestFile)with thelocalPathwrapped as e.g.voiddownload(java.lang.String source, LocalDestFile dest)DownloadremotePathtolocalFile.RemoteResourceFiltergetDownloadFilter()booleangetPreserveAttributes()LocalFileFiltergetUploadFilter()voidsetDownloadFilter(RemoteResourceFilter downloadFilter)voidsetPreserveAttributes(boolean preserveAttributes)voidsetUploadFilter(LocalFileFilter uploadFilter)voidupload(java.lang.String source, java.lang.String dest)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
-
SFTPFileTransfer
public SFTPFileTransfer(SFTPEngine engine)
-
-
Method Detail
-
getPreserveAttributes
public boolean getPreserveAttributes()
-
setPreserveAttributes
public void setPreserveAttributes(boolean preserveAttributes)
-
upload
public void upload(java.lang.String source, java.lang.String dest) 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 source, java.lang.String dest) 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
-
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
-
download
public void download(java.lang.String source, LocalDestFile dest) throws java.io.IOExceptionDescription copied from interface:FileTransferDownloadremotePathtolocalFile.- Specified by:
downloadin interfaceFileTransfer- Throws:
java.io.IOException
-
setUploadFilter
public void setUploadFilter(LocalFileFilter uploadFilter)
-
setDownloadFilter
public void setDownloadFilter(RemoteResourceFilter downloadFilter)
-
getUploadFilter
public LocalFileFilter getUploadFilter()
-
getDownloadFilter
public RemoteResourceFilter getDownloadFilter()
-
-