|
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
public class SftpClient2
The SFTP client version 2.
Field Summary | |
---|---|
static int |
VERSION
The client version |
Constructor Summary | |
---|---|
SftpClient2(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. |
void |
rename(java.lang.String oldPath,
java.lang.String newPath)
Renames the file. |
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 SftpClient2(com.jscape.inet.util.connection.Connection connection, SftpConfiguration config) throws java.io.IOException
connection
- the session connectionconfig
- 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 JFileSystem
getFile
in class SftpClient
pathname
- a pathname string
public JFile getFile(JFile parent, java.lang.String child)
getFile
in interface JFileSystem
getFile
in class SftpClient
parent
- the parent abstract pathnamechild
- the child pathname string
public JFile getFile(JFile parent, java.lang.String child, SftpFileAttributes attrs)
getFile
in class SftpClient
parent
- the parent abstract pathnamechild
- the child pathname string
public void rename(java.lang.String oldPath, java.lang.String newPath) throws SftpException
oldPath
- the old file pathnewPath
- the new file 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 |