|
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
com.jscape.inet.sftp.v4.SftpClient4
public class SftpClient4
The SFTP client version 4.
Field Summary | |
---|---|
static int |
VERSION
The client version |
Constructor Summary | |
---|---|
SftpClient4(com.jscape.inet.util.connection.Connection connection,
SftpConfiguration config)
Creates a new client instance. |
Method Summary | |
---|---|
SftpFileAttributes |
fstat(byte[] handle)
Obtains the remote file attributes. |
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. |
SftpFileAttributes |
lstat(java.lang.String path)
Obtains the link target attributes. |
void |
mkdir(java.lang.String path,
SftpFileAttributes attrs)
Creates a new directory. |
byte[] |
open(java.lang.String path,
JFileOpenFlags flags,
JAcl.Mask accessType,
SftpFileAttributes attrs)
Opens or creates the file. |
void |
setFstat(byte[] handle,
SftpFileAttributes attrs)
Setups the remote file attributes. |
void |
setStat(java.lang.String path,
SftpFileAttributes attrs)
Setups the remote file attributes. |
SftpFileAttributes |
stat(java.lang.String path)
Obtains the remote file attributes. |
Methods inherited from class com.jscape.inet.sftp.v3.SftpClient3 |
---|
readLink, symlink |
Methods inherited from class com.jscape.inet.sftp.v2.SftpClient2 |
---|
rename |
Methods inherited from class com.jscape.inet.sftp.SftpClient |
---|
close, close, containsExtension, create, getCharset, getConnection, getExtension, getStringExtension, getVersion, isClosed, knowsPacket, opendir, read, readdir, realPath, registerPacket, remove, rmdir, sendRequest, setCharset, 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 SftpClient4(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 JFileSystem
getFile
in class SftpClient3
pathname
- a pathname string
public JFile getFile(JFile parent, java.lang.String child)
getFile
in interface JFileSystem
getFile
in class SftpClient3
parent
- the parent abstract pathnamechild
- the child pathname string
public JFile getFile(JFile parent, java.lang.String child, SftpFileAttributes attrs)
getFile
in class SftpClient3
parent
- the parent abstract pathnamechild
- the child pathname stringattrs
- the file attributes
public void mkdir(java.lang.String path, SftpFileAttributes attrs) throws SftpException
mkdir
in class SftpClient
path
- the directory pathattrs
- the directory attributes
SftpException
- if an I/O or SFTP error occurs.public SftpFileAttributes stat(java.lang.String path) throws SftpException
stat
in class SftpClient
path
- the file path
SftpException
- if an I/O or SFTP error occurs.public SftpFileAttributes lstat(java.lang.String path) throws SftpException
lstat
in class SftpClient
path
- the link path
SftpException
- if an I/O or SFTP error occurs.public SftpFileAttributes fstat(byte[] handle) throws SftpException
fstat
in class SftpClient
handle
- the file handle
SftpException
- if an I/O or SFTP error occurs.public void setStat(java.lang.String path, SftpFileAttributes attrs) throws SftpException
setStat
in class SftpClient
path
- the file pathattrs
- desired file attributes
SftpException
- if an I/O or SFTP error occurs.public void setFstat(byte[] handle, SftpFileAttributes attrs) throws SftpException
setFstat
in class SftpClient
handle
- the file handleattrs
- desired file attributes
SftpException
- if an I/O or SFTP error occurs.public byte[] open(java.lang.String path, JFileOpenFlags flags, JAcl.Mask accessType, SftpFileAttributes attrs) throws SftpException
open
in class SftpClient
path
- the file pathflags
- the open flagsaccessType
- file access typeattrs
- the file attributes
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 |