| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.sshtools.j2ssh.sftp.SftpFilepublic class SftpFileextends java.lang.Objectimplements ComparableConstructor 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 IOExceptionpublic int compareTo(Object o)
public void delete()
throws IOExceptionpublic 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-