public class

StatefulSFTPClient

extends SFTPClient
java.lang.Object
   ↳ net.schmizz.sshj.sftp.SFTPClient
     ↳ net.schmizz.sshj.sftp.StatefulSFTPClient

Summary

Fields
private String cwd
[Expand]
Inherited Fields
From class net.schmizz.sshj.sftp.SFTPClient
Public Constructors
StatefulSFTPClient(SFTPEngine engine)
Public Methods
String canonicalize(String path)
synchronized void cd(String dirname)
void get(String source, LocalDestFile dest)
void get(String source, String dest)
synchronized List<RemoteResourceInfo> ls()
synchronized List<RemoteResourceInfo> ls(RemoteResourceFilter filter)
List<RemoteResourceInfo> ls(String path)
List<RemoteResourceInfo> ls(String path, RemoteResourceFilter filter)
FileAttributes lstat(String path)
void mkdir(String dirname)
void mkdirs(String path)
RemoteFile open(String filename, Set<OpenMode> mode)
RemoteFile open(String filename)
RemoteFile open(String filename, Set<OpenMode> mode, FileAttributes attrs)
void put(LocalSourceFile source, String dest)
void put(String source, String dest)
synchronized String pwd()
String readlink(String path)
void rename(String oldpath, String newpath)
void rm(String filename)
void rmdir(String dirname)
void setattr(String path, FileAttributes attrs)
FileAttributes stat(String path)
FileAttributes statExistence(String path)
void symlink(String linkpath, String targetpath)
void truncate(String path, long size)
[Expand]
Inherited Methods
From class net.schmizz.sshj.sftp.SFTPClient
From class java.lang.Object
From interface java.io.Closeable

Fields

private String cwd

Public Constructors

public StatefulSFTPClient (SFTPEngine engine)

Parameters
engine
Throws
IOException

Public Methods

public String canonicalize (String path)

Parameters
path
Throws
IOException

public synchronized void cd (String dirname)

Parameters
dirname
Throws
IOException

public void get (String source, LocalDestFile dest)

Parameters
source
dest
Throws
IOException

public void get (String source, String dest)

Parameters
source
dest
Throws
IOException

public synchronized List<RemoteResourceInfo> ls ()

Throws
IOException

public synchronized List<RemoteResourceInfo> ls (RemoteResourceFilter filter)

Parameters
filter
Throws
IOException

public List<RemoteResourceInfo> ls (String path)

Parameters
path
Throws
IOException

public List<RemoteResourceInfo> ls (String path, RemoteResourceFilter filter)

Parameters
path
filter
Throws
IOException

public FileAttributes lstat (String path)

Parameters
path
Throws
IOException

public void mkdir (String dirname)

Parameters
dirname
Throws
IOException

public void mkdirs (String path)

Parameters
path
Throws
IOException

public RemoteFile open (String filename, Set<OpenMode> mode)

Parameters
filename
mode
Throws
IOException

public RemoteFile open (String filename)

Parameters
filename
Throws
IOException

public RemoteFile open (String filename, Set<OpenMode> mode, FileAttributes attrs)

Parameters
filename
mode
attrs
Throws
IOException

public void put (LocalSourceFile source, String dest)

Parameters
source
dest
Throws
IOException

public void put (String source, String dest)

Parameters
source
dest
Throws
IOException

public synchronized String pwd ()

Throws
IOException

public String readlink (String path)

Parameters
path
Throws
IOException

public void rename (String oldpath, String newpath)

Parameters
oldpath
newpath
Throws
IOException

public void rm (String filename)

Parameters
filename
Throws
IOException

public void rmdir (String dirname)

Parameters
dirname
Throws
IOException

public void setattr (String path, FileAttributes attrs)

Parameters
path
attrs
Throws
IOException

public FileAttributes stat (String path)

Parameters
path
Throws
IOException

public FileAttributes statExistence (String path)

Parameters
path
Throws
IOException

public void symlink (String linkpath, String targetpath)

Parameters
linkpath
targetpath
Throws
IOException

public void truncate (String path, long size)

Parameters
path
size
Throws
IOException