|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
File attributes information
Field Summary | |
static int |
FILE_ATTR_ALL
All attributes (for find ) |
static int |
FILE_ATTR_ANY
|
static int |
FILE_ATTR_ARCHIVE
Archive file |
static int |
FILE_ATTR_DIRECTORY
Directory |
static int |
FILE_ATTR_HIDDEN_FILE
Hidden file |
static int |
FILE_ATTR_READ_ONLY
Read only file |
static int |
FILE_ATTR_SYSTEM_FILE
System file |
static int |
FILE_ATTR_VOLUME
Volume |
Method Summary | |
int |
getAttributes()
Returns file attribute flag |
java.util.Date |
getCreationTime()
Returns creation time of the file/directory |
java.lang.String |
getFileName()
Returns file name |
java.util.Date |
getLastAccessTime()
Returns last access time of the file/directory |
java.util.Date |
getLastWriteTime()
Returns last write time of the file/directory |
java.lang.String |
getPathName()
Returns the path name |
boolean |
isArchive()
Returns if file is a archive file |
boolean |
isDirectory()
Checks if file is a directory |
boolean |
isFile()
Checks if is a file |
boolean |
isHidden()
Returns if file is a hidden file |
boolean |
isReadOnly()
Returns true if file is read only |
boolean |
isSystem()
Returns if file is a system file |
long |
length()
Returns file size |
Field Detail |
public static final int FILE_ATTR_ANY
public static final int FILE_ATTR_READ_ONLY
public static final int FILE_ATTR_HIDDEN_FILE
public static final int FILE_ATTR_SYSTEM_FILE
public static final int FILE_ATTR_VOLUME
public static final int FILE_ATTR_DIRECTORY
public static final int FILE_ATTR_ARCHIVE
public static final int FILE_ATTR_ALL
Method Detail |
public java.lang.String getPathName()
public java.lang.String getFileName()
public java.util.Date getCreationTime()
public java.util.Date getLastAccessTime()
public java.util.Date getLastWriteTime()
public long length()
public boolean isDirectory()
public boolean isFile()
public boolean isReadOnly()
public boolean isHidden()
public boolean isSystem()
public boolean isArchive()
public int getAttributes()
|
Norbert Hranitzky | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |