Package net.schmizz.sshj.sftp
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 SFTPEngine
protected final org.slf4j.Logger
Loggerprotected final SFTPFileTransfer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
canonicalize
(String path) void
void
void
void
close()
void
void
void
get
(String source, LocalDestFile dest) void
get
(String source, LocalDestFile dest, long byteOffset) int
ls
(String path, RemoteResourceFilter filter) void
void
long
open
(String filename, Set<OpenMode> mode, FileAttributes attrs) void
void
void
put
(LocalSourceFile source, String dest) void
put
(LocalSourceFile source, String dest, long byteOffset) void
void
rename
(String oldpath, String newpath, Set<RenameFlags> renameFlags) void
void
void
setattr
(String path, FileAttributes attrs) long
statExistence
(String path) void
void
int
int
version()
-
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
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-