|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ssh.sft.SftLib
com.ssh.sft.SftBase
com.ssh.sft.FileAttributes
A collection of file attributes. Instances of this class are records that collect various attributes that a file may have. The record is wholly transparent: the fields are public and the user may create and modify instances of this class. Not all attributes are always set. When a field has a value of null or -1, it indicates that the attribute is unset, i.e. not available or not meant to be modified.
| Field Summary | |
Date |
access_time
The time of the last access to the file. |
Date |
create_time
The time of creation of the file. |
long |
gid
The group ID of the file. |
String |
group
The name of the group of the file. |
Date |
modify_time
The time of the last modificaction of the file. |
String |
owner
The name of the owner of the file. |
long |
permissions
The permissions of the file as a standard UNIX mode value. |
long |
size
The size of the file in bytes. |
static int |
SSH_SFT_DIR_RECURSIVE
|
static int |
SSH_SFT_FILE_TYPE_DIRECTORY
|
static int |
SSH_SFT_FILE_TYPE_REGULAR
|
static int |
SSH_SFT_FILE_TYPE_SPECIAL
|
static int |
SSH_SFT_FILE_TYPE_SYMLINK
|
static int |
SSH_SFT_FILE_TYPE_UNKNOWN
|
static int |
SSH_SFT_HASH_MAX_BLOCK_SIZE
|
static int |
SSH_SFT_HASH_MAX_ITERATIONS
|
static int |
SSH_SFT_HASH_MIN_BLOCK_SIZE
|
static int |
SSH_SFT_REQUEST_MAX_NUM
|
static int |
SSH_SFT_REQUEST_MAX_SIZE
|
int |
type
The type of the file. |
long |
uid
The user ID of the file. |
| Constructor Summary | |
FileAttributes()
Constructs a new FileAttributes object with all of the attributes initially unset. |
|
| Method Summary | |
FileAttributes |
copy()
Returns a new FileAttributes object with the same fields as this one. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int type
public long size
public String owner
public String group
public long uid
public long gid
public Date create_time
public Date access_time
public Date modify_time
public long permissions
public static final int SSH_SFT_FILE_TYPE_REGULAR
public static final int SSH_SFT_FILE_TYPE_DIRECTORY
public static final int SSH_SFT_FILE_TYPE_SYMLINK
public static final int SSH_SFT_FILE_TYPE_SPECIAL
public static final int SSH_SFT_FILE_TYPE_UNKNOWN
public static final int SSH_SFT_REQUEST_MAX_SIZE
public static final int SSH_SFT_REQUEST_MAX_NUM
public static final int SSH_SFT_HASH_MAX_ITERATIONS
public static final int SSH_SFT_HASH_MIN_BLOCK_SIZE
public static final int SSH_SFT_HASH_MAX_BLOCK_SIZE
public static final int SSH_SFT_DIR_RECURSIVE
| Constructor Detail |
public FileAttributes()
| Method Detail |
public FileAttributes copy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||