|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.admin.FileStatus
Class that implements a file status wrapper.
Field Summary | |
static int |
READABLE_DIRECTORY
Represents an existing and readable directory. |
static int |
READABLE_FILE
Represents an existing and readable file. |
static java.lang.String[] |
SHOULD_STATE
|
static int |
WRITEABLE_DIRECTORY
Represents an existing and writeable directory. |
static int |
WRITEABLE_FILE
Represents an existing and writeable file. |
Constructor Summary | |
FileStatus(java.lang.String filename)
Constructs a new file status instance. |
Method Summary | |
java.lang.String |
getFilename()
Returns the filename of the file that is described through this FileStatus. |
java.lang.String |
getIsState()
Returns the IS state of the file described by this FileStatus. |
boolean |
isDirectory()
Tests if the file is a directory. |
boolean |
isExisting()
Tests if the file exists. |
boolean |
isReadable()
Tests if the file is readable. |
boolean |
isType(int TYPE)
Tests if the file described by this FileStatus represents the given type. |
boolean |
isWriteable()
Tests if the file is writeable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int READABLE_FILE
public static final int WRITEABLE_FILE
public static final int READABLE_DIRECTORY
public static final int WRITEABLE_DIRECTORY
public static final java.lang.String[] SHOULD_STATE
Constructor Detail |
public FileStatus(java.lang.String filename) throws JwmaException
Method Detail |
public java.lang.String getFilename()
public boolean isWriteable()
public boolean isDirectory()
public boolean isReadable()
public boolean isExisting()
public java.lang.String getIsState()
public boolean isType(int TYPE)
The types are encoded through given constants.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |