Package net.schmizz.sshj.sftp
Class StatefulSFTPClient
java.lang.Object
net.schmizz.sshj.sftp.SFTPClient
net.schmizz.sshj.sftp.StatefulSFTPClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
FieldsFields inherited from class net.schmizz.sshj.sftp.SFTPClient
engine, log, xfer
-
Constructor Summary
ConstructorsConstructorDescriptionStatefulSFTPClient
(SessionFactory sessionFactory) StatefulSFTPClient
(SFTPEngine engine) -
Method Summary
Modifier and TypeMethodDescriptioncanonicalize
(String path) void
private String
void
void
get
(String source, LocalDestFile dest) ls()
ls
(String path, RemoteResourceFilter filter) ls
(RemoteResourceFilter filter) void
void
open
(String filename, Set<OpenMode> mode, FileAttributes attrs) void
void
put
(LocalSourceFile source, String dest) pwd()
void
rename
(String oldpath, String newpath, Set<RenameFlags> renameFlags) void
void
void
setattr
(String path, FileAttributes attrs) statExistence
(String path) void
void
-
Field Details
-
cwd
-
-
Constructor Details
-
StatefulSFTPClient
- Throws:
IOException
-
StatefulSFTPClient
- Throws:
IOException
-
-
Method Details
-
cwdify
-
cd
- Throws:
IOException
-
ls
- Throws:
IOException
-
ls
- Throws:
IOException
-
pwd
- Throws:
IOException
-
ls
- Overrides:
ls
in classSFTPClient
- Throws:
IOException
-
ls
- Overrides:
ls
in classSFTPClient
- Throws:
IOException
-
open
public RemoteFile open(String filename, Set<OpenMode> mode, FileAttributes attrs) throws IOException - Overrides:
open
in classSFTPClient
- Throws:
IOException
-
open
- Overrides:
open
in classSFTPClient
- Throws:
IOException
-
open
- Overrides:
open
in classSFTPClient
- Throws:
IOException
-
mkdir
- Overrides:
mkdir
in classSFTPClient
- Throws:
IOException
-
mkdirs
- Overrides:
mkdirs
in classSFTPClient
- Throws:
IOException
-
statExistence
- Overrides:
statExistence
in classSFTPClient
- Throws:
IOException
-
rename
- Overrides:
rename
in classSFTPClient
- Throws:
IOException
-
rm
- Overrides:
rm
in classSFTPClient
- Throws:
IOException
-
rmdir
- Overrides:
rmdir
in classSFTPClient
- Throws:
IOException
-
symlink
- Overrides:
symlink
in classSFTPClient
- Throws:
IOException
-
setattr
- Overrides:
setattr
in classSFTPClient
- Throws:
IOException
-
readlink
- Overrides:
readlink
in classSFTPClient
- Throws:
IOException
-
stat
- Overrides:
stat
in classSFTPClient
- Throws:
IOException
-
lstat
- Overrides:
lstat
in classSFTPClient
- Throws:
IOException
-
truncate
- Overrides:
truncate
in classSFTPClient
- Throws:
IOException
-
canonicalize
- Overrides:
canonicalize
in classSFTPClient
- Throws:
IOException
-
get
- Overrides:
get
in classSFTPClient
- Throws:
IOException
-
get
- Overrides:
get
in classSFTPClient
- Throws:
IOException
-
put
- Overrides:
put
in classSFTPClient
- Throws:
IOException
-
put
- Overrides:
put
in classSFTPClient
- Throws:
IOException
-