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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SFTPFileTransfer
public SFTPFileTransfer(SFTPEngine engine)
getPreserveAttributes
public boolean getPreserveAttributes()
setPreserveAttributes
public void setPreserveAttributes(boolean preserveAttributes)
upload
public void upload(String source,
String dest)
throws IOException
- Description copied from interface:
FileTransfer
- This is meant to delegate to
FileTransfer.upload(LocalSourceFile, String)
with the localPath
wrapped as e.g.
a FileSystemFile
.
- Specified by:
upload
in interface FileTransfer
- Throws:
IOException
download
public void download(String source,
String dest)
throws IOException
- Description copied from interface:
FileTransfer
- This is meant to delegate to
FileTransfer.download(String, LocalDestFile)
with the localPath
wrapped as e.g.
a FileSystemFile
.
- Specified by:
download
in interface FileTransfer
- Throws:
IOException
upload
public void upload(LocalSourceFile localFile,
String remotePath)
throws IOException
- Description copied from interface:
FileTransfer
- Upload
localFile
to remotePath
.
Attributes will be set on remotePath
based on the localFile
.
- Specified by:
upload
in interface FileTransfer
- Throws:
IOException
download
public void download(String source,
LocalDestFile dest)
throws IOException
- Description copied from interface:
FileTransfer
- Download
remotePath
to localFile
.
Attributes will be set on localFile
based on the remotePath
's attributes.
- Specified by:
download
in interface FileTransfer
- Throws:
IOException
setUploadFilter
public void setUploadFilter(LocalFileFilter uploadFilter)
setDownloadFilter
public void setDownloadFilter(RemoteResourceFilter downloadFilter)
getUploadFilter
public LocalFileFilter getUploadFilter()
getDownloadFilter
public RemoteResourceFilter getDownloadFilter()
Copyright © 2009-2012. All Rights Reserved.