| java.lang.Object dtw.webmail.admin.FileStatus
FileStatus | public class FileStatus (Code) | | Class that implements a file status wrapper.
author: Dieter Wimberger version: 0.9.7 07/02/2003 |
Constructor Summary | |
public | FileStatus(String filename) Constructs a new file status instance. |
Method Summary | |
public String | getFilename() Returns the filename of the file that is
described through this FileStatus. | public String | getIsState() Returns the IS state of the file described
by this FileStatus. | public boolean | isDirectory() Tests if the file is a directory. | public boolean | isExisting() Tests if the file exists. | public boolean | isReadable() Tests if the file is readable. | public boolean | isType(int TYPE) Tests if the file described by this
FileStatus represents the given type. | public boolean | isWriteable() Tests if the file is writeable. |
READABLE_DIRECTORY | final public static int READABLE_DIRECTORY(Code) | | Represents an existing and readable directory.
[Exists,D,R,!W]
|
READABLE_FILE | final public static int READABLE_FILE(Code) | | Represents an existing and readable file.
[Exists,!D,R,!W]
|
WRITEABLE_DIRECTORY | final public static int WRITEABLE_DIRECTORY(Code) | | Represents an existing and writeable directory.
[Exists,D,R,W]
|
WRITEABLE_FILE | final public static int WRITEABLE_FILE(Code) | | Represents an existing and writeable file.
[Exists,!D,R,W]
|
getFilename | public String getFilename()(Code) | | Returns the filename of the file that is
described through this FileStatus.
the filename of the file described by thisFileStatus. |
getIsState | public String getIsState()(Code) | | Returns the IS state of the file described
by this FileStatus.
the is state as String. |
isDirectory | public boolean isDirectory()(Code) | | Tests if the file is a directory.
true if it is a directory, false otherwise. |
isExisting | public boolean isExisting()(Code) | | Tests if the file exists.
true if it exists, false otherwise. |
isReadable | public boolean isReadable()(Code) | | Tests if the file is readable.
true if readable, false otherwise. |
isType | public boolean isType(int TYPE)(Code) | | Tests if the file described by this
FileStatus represents the given type.
The types are encoded through given constants.
true if of the given type, false otherwise. |
isWriteable | public boolean isWriteable()(Code) | | Tests if the file is writeable.
true if writeable, false otherwise. |
|
|