Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.j2ssh.sftp.SftpFile
public class SftpFile
extends java.lang.Object
implements Comparable
Constructor Summary | |
| |
|
Method Summary | |
boolean |
|
boolean |
|
void |
|
int |
|
void |
|
String | |
FileAttributes | |
String | |
protected byte[] | |
String | |
protected SftpSubsystemClient | |
boolean |
|
boolean | |
boolean | |
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
protected void |
|
protected void |
public SftpFile(String absolutePath)
Creates a new SftpFile object.
- Parameters:
absolutePath
-
public SftpFile(String absolutePath, FileAttributes attrs)
Creates a new SftpFile object.
- Parameters:
absolutePath
-attrs
-
public boolean canRead()
- Returns:
public boolean canWrite()
- Returns:
public void close() throws IOException
public int compareTo(Object o)
public void delete() throws IOException
public String getAbsolutePath()
- Returns:
public String getFilename()
- Returns:
protected byte[] getHandle()
- Returns:
public String getLongname()
- Returns:
public boolean isBlock()
- Returns:
public boolean isCharacter()
- Returns:
public boolean isDirectory()
- Returns:
public boolean isFifo()
- Returns:
public boolean isFile()
- Returns:
public boolean isLink()
- Returns:
public boolean isOpen()
- Returns:
public boolean isSocket()
- Returns:
public void rename(String newFilename) throws IOException
- Parameters:
newFilename
-
protected void setHandle(byte[] handle)
- Parameters:
handle
-