|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An abstract representation of file or directory in the remote resource. Carries properties and access rights information of the file.
| Field Summary | |
static byte |
DEVICE
|
static byte |
DIRECTORY
|
static byte |
FILE
|
static byte |
SOFTLINK
|
static byte |
UNKNOWN
|
| Method Summary | |
boolean |
allCanExecute()
return true if all users can execute the file |
boolean |
allCanRead()
return true if all users can read from the file |
boolean |
allCanWrite()
return true if all users can write into the file |
String |
getAbsolutePathName()
return absolute path name of the file |
Permissions |
getAllPermissions()
get permissions of all users |
byte |
getFileType()
return file type |
Permissions |
getGroupPermissions()
get permissions of the group users |
String |
getLastModified()
return last modified date |
String |
getMode()
return mode of the file |
String |
getName()
get name of the file |
long |
getSize()
get size of the file |
Permissions |
getUserPermissions()
get permissions of the user |
boolean |
groupCanExecute()
return true if the group can execute the file |
boolean |
groupCanRead()
return true if the group can read from the file |
boolean |
groupCanWrite()
return true if the group can write into the file |
boolean |
isDevice()
return true if it is device |
boolean |
isDirectory()
return true if it is a directory |
boolean |
isFile()
return true if it is a file |
boolean |
isSoftLink()
return true if it is soft link |
void |
setAbsolutePathName(String name)
set absolute path name of the file |
void |
setAllPermissions(Permissions allPermissions)
set permissions for all users |
void |
setFileType(byte type)
set file type |
void |
setGroupPermissions(Permissions groupPermissions)
set permissions for the group users |
void |
setLastModified(String date)
set last modified date of the file |
void |
setMode(String mode)
set mode of the file |
void |
setName(String name)
set name of the file |
void |
setSize(long size)
set size of the file |
void |
setUserPermissions(Permissions userPermissions)
set permissions for the user |
boolean |
userCanExecute()
return true if the user can execute the file |
boolean |
userCanRead()
return true if the user can read the file |
boolean |
userCanWrite()
return true if the user can write into the file |
| Field Detail |
public static final byte UNKNOWN
public static final byte FILE
public static final byte DIRECTORY
public static final byte SOFTLINK
public static final byte DEVICE
| Method Detail |
public void setSize(long size)
public long getSize()
public void setName(String name)
public String getName()
public void setAbsolutePathName(String name)
public String getAbsolutePathName()
public void setLastModified(String date)
public String getLastModified()
public void setFileType(byte type)
public byte getFileType()
public boolean isFile()
public boolean isDirectory()
public boolean isSoftLink()
public boolean isDevice()
public void setMode(String mode)
public String getMode()
public void setUserPermissions(Permissions userPermissions)
public Permissions getUserPermissions()
public void setGroupPermissions(Permissions groupPermissions)
public Permissions getGroupPermissions()
public void setAllPermissions(Permissions allPermissions)
public Permissions getAllPermissions()
public boolean userCanRead()
public boolean userCanWrite()
public boolean userCanExecute()
public boolean groupCanRead()
public boolean groupCanWrite()
public boolean groupCanExecute()
public boolean allCanRead()
public boolean allCanWrite()
public boolean allCanExecute()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||