Class SFTPClient
java.lang.Object
net.schmizz.sshj.sftp.SFTPClient
- All Implemented Interfaces:
Closeable, AutoCloseable
- Direct Known Subclasses:
StatefulSFTPClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SFTPEngineprotected final org.slf4j.LoggerLoggerprotected final SFTPFileTransfer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcanonicalize(String path) voidvoidvoidvoidclose()voidvoidvoidget(String source, LocalDestFile dest) voidget(String source, LocalDestFile dest, long byteOffset) intls(String path, RemoteResourceSelector selector) ls(String path, RemoteResourceFilter filter) voidvoidlongopen(String filename, Set<OpenMode> mode, FileAttributes attrs) voidvoidvoidput(LocalSourceFile source, String dest) voidput(LocalSourceFile source, String dest, long byteOffset) voidvoidrename(String oldpath, String newpath, Set<RenameFlags> renameFlags) voidvoidvoidsetattr(String path, FileAttributes attrs) longstatExistence(String path) voidvoidintintversion()
-
Field Details
-
log
protected final org.slf4j.Logger logLogger -
engine
-
xfer
-
-
Constructor Details
-
SFTPClient
-
SFTPClient
- Throws:
IOException
-
-
Method Details
-
getSFTPEngine
-
getFileTransfer
-
ls
- Throws:
IOException
-
ls
- Throws:
IOException
-
ls
- Throws:
IOException
-
open
public RemoteFile open(String filename, Set<OpenMode> mode, FileAttributes attrs) throws IOException - Throws:
IOException
-
open
- Throws:
IOException
-
open
- Throws:
IOException
-
mkdir
- Throws:
IOException
-
mkdirs
- Throws:
IOException
-
statExistence
- Throws:
IOException
-
rename
- Throws:
IOException
-
rename
- Throws:
IOException
-
rm
- Throws:
IOException
-
rmdir
- Throws:
IOException
-
symlink
- Throws:
IOException
-
version
public int version() -
setattr
- Throws:
IOException
-
uid
- Throws:
IOException
-
gid
- Throws:
IOException
-
atime
- Throws:
IOException
-
mtime
- Throws:
IOException
-
perms
- Throws:
IOException
-
mode
- Throws:
IOException
-
type
- Throws:
IOException
-
readlink
- Throws:
IOException
-
stat
- Throws:
IOException
-
lstat
- Throws:
IOException
-
chown
- Throws:
IOException
-
chmod
- Throws:
IOException
-
chgrp
- Throws:
IOException
-
truncate
- Throws:
IOException
-
canonicalize
- Throws:
IOException
-
size
- Throws:
IOException
-
get
- Throws:
IOException
-
get
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
get
- Throws:
IOException
-
get
- Throws:
IOException
-
put
- Throws:
IOException
-
put
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-