Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.j2ssh.connection.Channel
com.sshtools.j2ssh.subsystem.SubsystemChannel
com.sshtools.j2ssh.sftp.SftpSubsystemClient
public class SftpSubsystemClient
extends SubsystemChannel
Field Summary | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
Fields inherited from class com.sshtools.j2ssh.subsystem.SubsystemChannel | |
messageStore |
Fields inherited from class com.sshtools.j2ssh.connection.Channel | |
connection , localChannelId , localPacketSize , localWindow , remoteChannelId , remotePacketSize , remoteWindow , state |
Constructor Summary | |
|
Method Summary | |
protected long | |
void |
|
void |
|
void |
|
void |
|
void | |
protected void |
|
void |
|
String |
|
String |
|
FileAttributes |
|
FileAttributes |
|
String | |
protected int | |
protected int | |
protected int | |
String |
|
String |
|
boolean | |
protected boolean |
|
int |
|
void |
|
protected long | |
SftpFile |
|
SftpFile |
|
SftpFile |
|
protected int |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemChannel | |
getChannelConfirmationData , getChannelOpenData , getChannelType , onChannelClose , onChannelData , onChannelEOF , onChannelExtData , onChannelOpen , onChannelRequest , sendMessage , startSubsystem |
Methods inherited from class com.sshtools.j2ssh.connection.Channel | |
addEventListener , close , finalizeClose , getChannelConfirmationData , getChannelOpenData , getChannelType , getLocalChannelId , getLocalPacketSize , getLocalWindow , getMaximumPacketSize , getMaximumWindowSpace , getMinimumWindowSpace , getName , getRemoteChannelId , getRemotePacketSize , getRemoteWindow , getState , init , init , isClosed , isLocalEOF , isOpen , isRemoteEOF , onChannelClose , onChannelData , onChannelEOF , onChannelExtData , onChannelOpen , onChannelRequest , open , processChannelData , processChannelData , remoteClose , sendChannelData , sendChannelExtData , setLocalEOF , setName , setRemoteEOF |
public static final int OPEN_APPEND
- Field Value:
- 4
public static final int OPEN_CREATE
- Field Value:
- 8
public static final int OPEN_EXCLUSIVE
- Field Value:
- 32
public static final int OPEN_READ
- Field Value:
- 1
public static final int OPEN_TRUNCATE
- Field Value:
- 16
public static final int OPEN_WRITE
- Field Value:
- 2
public static final int VERSION_1
- Field Value:
- 1
public static final int VERSION_2
- Field Value:
- 2
public static final int VERSION_3
- Field Value:
- 3
public static final int VERSION_4
- Field Value:
- 4
protected long availableWindowSpace()
- Returns:
public void changePermissions(String filename, String permissions) throws IOException
- Parameters:
filename
-permissions
-
public void changePermissions(String filename, int permissions) throws IOException
- Parameters:
filename
-permissions
-
public void changePermissions(SftpFile file, String permissions) throws IOException
- Parameters:
file
-permissions
-
public void changePermissions(SftpFile file, int permissions) throws IOException
- Parameters:
file
-permissions
-
protected void closeHandle(byte[] handle) throws IOException
- Parameters:
handle
-
public void createSymbolicLink(String targetpath, String linkpath) throws IOException
- Parameters:
targetpath
-linkpath
-
public String getAbsolutePath(String path) throws IOException
- Parameters:
path
-
- Returns:
public String getAbsolutePath(SftpFile file) throws IOException
- Parameters:
file
-
- Returns:
public FileAttributes getAttributes(String path) throws IOException
- Parameters:
path
-
- Returns:
public FileAttributes getAttributes(SftpFile file) throws IOException
- Parameters:
file
-
- Returns:
public String getDefaultDirectory() throws IOException
- Returns:
protected int getMaximumPacketSize()
- Overrides:
- getMaximumPacketSize in interface Channel
- Returns:
protected int getMaximumWindowSpace()
- Overrides:
- getMaximumWindowSpace in interface Channel
- Returns:
protected int getMinimumWindowSpace()
- Overrides:
- getMinimumWindowSpace in interface Channel
- Returns:
public String getSymbolicLinkTarget(String linkpath) throws IOException
- Parameters:
linkpath
-
- Returns:
public boolean initialize() throws IOException
- Returns:
protected boolean isValidHandle(byte[] handle)
- Parameters:
handle
-
- Returns:
public int listChildren(SftpFile file, List children) throws IOException
- Parameters:
file
-children
-
- Returns:
public void makeDirectory(String path) throws IOException
- Parameters:
path
-
protected long maximumPacketSize()
- Returns:
public SftpFile openDirectory(String path) throws IOException
- Parameters:
path
-
- Returns:
public SftpFile openFile(String filename, int flags) throws IOException
- Parameters:
filename
-flags
-
- Returns:
public SftpFile openFile(String absolutePath, int flags, FileAttributes attrs) throws IOException
- Parameters:
absolutePath
-flags
-attrs
-
- Returns:
protected int readFile(byte[] handle, UnsignedInteger64 offset, byte[] output, int off, int len) throws IOException
- Parameters:
handle
-offset
-output
-off
-len
-
- Returns:
public void recurseMakeDirectory(String path) throws IOException
- Parameters:
path
-
public void removeDirectory(String path) throws IOException
- Parameters:
path
-
public void removeFile(String filename) throws IOException
- Parameters:
filename
-
public void renameFile(String oldpath, String newpath) throws IOException
- Parameters:
oldpath
-newpath
-
public void setAttributes(String path, FileAttributes attrs) throws IOException
- Parameters:
path
-attrs
-
public void setAttributes(SftpFile file, FileAttributes attrs) throws IOException
- Parameters:
file
-attrs
-
protected void writeFile(byte[] handle, UnsignedInteger64 offset, byte[] data, int off, int len) throws IOException
- Parameters:
handle
-offset
-data
-off
-len
-