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

Variable Index

 o CANREAD
file flag: can read
 o CANWRITE
file flag: can write
 o DIRECTORY
file flag: directory

Method Index

 o getFlags()
 o getLastModificationTime()
this information may also be irrelevant (if yes, it should be 0) if file is a directory
 o getName()
This method is useful for determining the real name of an entity in case-insensitive FSs.
 o getSize()
this information is irrelevant (should be 0) if file is a directory

Variables

 o DIRECTORY
public static final int DIRECTORY
file flag: directory

 o CANREAD
public static final int CANREAD
file flag: can read

 o CANWRITE
public static final int CANWRITE
file flag: can write

Methods

 o 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
 o getFlags
public abstract int getFlags()
 o getSize
public abstract long getSize()
this information is irrelevant (should be 0) if file is a directory

 o 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