|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trilead.ssh2.SFTPv3Client
org.glassfish.cluster.ssh.sftp.SFTPClient
public class SFTPClient
| Constructor Summary | |
|---|---|
SFTPClient(com.trilead.ssh2.Connection conn)
|
|
| Method Summary | |
|---|---|
com.trilead.ssh2.SFTPv3FileAttributes |
_stat(java.lang.String path)
Graceful SFTPv3Client.stat(String) that returns null if the path doesn't exist. |
void |
chmod(java.lang.String path,
int permissions)
|
void |
close()
Close the SFTP connection and free any resources associated with it. |
boolean |
exists(java.lang.String path)
Checks if the given path exists. |
void |
mkdirs(java.lang.String path,
int posixPermission)
Makes sure that the directory exists, by creating it if necessary. |
static java.lang.String |
normalizePath(java.lang.String path)
|
java.io.InputStream |
read(java.lang.String file)
|
java.io.OutputStream |
writeToFile(java.lang.String path)
Creates a new file and writes to it. |
| Methods inherited from class com.trilead.ssh2.SFTPv3Client |
|---|
canonicalPath, closeFile, createFile, createFile, createFileTruncate, createFileTruncate, createSymlink, fsetstat, fstat, getCharset, getProtocolVersion, ls, lstat, mkdir, mv, openFileRO, openFileRW, read, readLink, rm, rmdir, setCharset, setstat, stat, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SFTPClient(com.trilead.ssh2.Connection conn)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void close()
close in class com.trilead.ssh2.SFTPv3Client
public boolean exists(java.lang.String path)
throws java.io.IOException
exists in class com.trilead.ssh2.SFTPv3Clientjava.io.IOException
public com.trilead.ssh2.SFTPv3FileAttributes _stat(java.lang.String path)
throws java.io.IOException
SFTPv3Client.stat(String) that returns null if the path doesn't exist.
_stat in class com.trilead.ssh2.SFTPv3Clientjava.io.IOException
public void mkdirs(java.lang.String path,
int posixPermission)
throws java.io.IOException
mkdirs in class com.trilead.ssh2.SFTPv3Clientjava.io.IOException
public java.io.OutputStream writeToFile(java.lang.String path)
throws java.io.IOException
writeToFile in class com.trilead.ssh2.SFTPv3Clientjava.io.IOException
public java.io.InputStream read(java.lang.String file)
throws java.io.IOException
read in class com.trilead.ssh2.SFTPv3Clientjava.io.IOException
public void chmod(java.lang.String path,
int permissions)
throws java.io.IOException
chmod in class com.trilead.ssh2.SFTPv3Clientjava.io.IOExceptionpublic static java.lang.String normalizePath(java.lang.String path)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||