All Packages Class Hierarchy This Package Previous Next Index
Interface org.jos.fs.FSFileInfo
- public interface FSFileInfo
Interface to information about a file or directory (size, modification time etc.)
- Version:
- JOS-FileSystem 4 Preview (25-Mar-98)
- Author:
- Stefan Reich
- See Also:
- FileSystem, FSManager
-
CANREAD
- file flag: can read
-
CANWRITE
- file flag: can write
-
DIRECTORY
- file flag: directory
-
getFlags()
-
-
getLastModificationTime()
- this information may also be irrelevant (if yes, it should be 0)
if file is a directory
-
getName()
- This method is useful for determining the real name of an entity in
case-insensitive FSs.
-
getSize()
- this information is irrelevant (should be 0) if file is a directory
DIRECTORY
public static final int DIRECTORY
- file flag: directory
CANREAD
public static final int CANREAD
- file flag: can read
CANWRITE
public static final int CANWRITE
- file flag: can write
getName
public abstract String getName()
- This method is useful for determining the real name of an entity in
case-insensitive FSs. (E.g. getFileInfo("abc/def").getName() == "DeF")
- Returns:
- name without path
getFlags
public abstract int getFlags()
getSize
public abstract long getSize()
- this information is irrelevant (should be 0) if file is a directory
getLastModificationTime
public abstract long getLastModificationTime()
- this information may also be irrelevant (if yes, it should be 0)
if file is a directory
All Packages Class Hierarchy This Package Previous Next Index