|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jscape.inet.sftp.SftpClient
com.jscape.inet.sftp.v2.SftpClient2
com.jscape.inet.sftp.v3.SftpClient3
public class SftpClient3
The SFTP client version 3.
| Field Summary | |
|---|---|
static int |
VERSION
The client version |
| Constructor Summary | |
|---|---|
SftpClient3(com.jscape.inet.util.connection.Connection connection,
SftpConfiguration config)
Creates a new client instance. |
|
| Method Summary | |
|---|---|
JFile |
getFile(JFile parent,
java.lang.String child)
Creates a new JFile instance from a parent abstract pathname and a child pathname string. |
JFile |
getFile(JFile parent,
java.lang.String child,
SftpFileAttributes attrs)
Creates a new JFile instance from a parent abstract pathname and a child pathname string. |
JFile |
getFile(java.lang.String pathname)
Creates a new JFile instance by converting the given pathname string into an abstract pathname. |
java.lang.String |
readLink(java.lang.String path)
Obtains the link target. |
void |
symlink(java.lang.String linkPath,
java.lang.String targetPath)
Creates a new symbolic link. |
| Methods inherited from class com.jscape.inet.sftp.v2.SftpClient2 |
|---|
rename |
| Methods inherited from class com.jscape.inet.sftp.SftpClient |
|---|
close, close, containsExtension, create, fstat, getCharset, getConnection, getExtension, getStringExtension, getVersion, isClosed, knowsPacket, lstat, mkdir, open, opendir, read, readdir, realPath, registerPacket, remove, rmdir, sendRequest, setCharset, setFstat, setStat, stat, unregisterPacket, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION
| Constructor Detail |
|---|
public SftpClient3(com.jscape.inet.util.connection.Connection connection,
SftpConfiguration config)
throws java.io.IOException
connection - the session channelconfig - the configuration
SftpException - if an I/O or SFTP error occurs.
java.io.IOException| Method Detail |
|---|
public JFile getFile(java.lang.String pathname)
getFile in interface JFileSystemgetFile in class SftpClient2pathname - a pathname string
public JFile getFile(JFile parent,
java.lang.String child)
getFile in interface JFileSystemgetFile in class SftpClient2parent - the parent abstract pathnamechild - the child pathname string
public JFile getFile(JFile parent,
java.lang.String child,
SftpFileAttributes attrs)
getFile in class SftpClient2parent - the parent abstract pathnamechild - the child pathname stringattrs - the file attributes
public java.lang.String readLink(java.lang.String path)
throws SftpException
path - the link path
SftpException - if an I/O or SFTP error occurs.
public void symlink(java.lang.String linkPath,
java.lang.String targetPath)
throws SftpException
linkPath - the link pathtargetPath - the link target path
SftpException - if an I/O or SFTP error occurs.
|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||