All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class org.jos.fs.FSBranchInfo

java.lang.Object
    |
    +----org.jos.fs.FSBranchInfo

public class FSBranchInfo
extends Object
Interface to information about a branch

If the free space calculation is very costly, FSBranchInfo can be subclassed and getFreeSpace() replaced (that's why getFreeSpace() is not final, unlike the other methods).

Version:
JOS-FileSystem 4 Preview (25-Mar-98)
Author:
Stefan Reich
See Also:
FileSystem, FSManager

Variable Index

 o FREESPACE_UNKNOWN
number of bytes free: unknown

Constructor Index

 o FSBranchInfo(int, long)

Method Index

 o getCasePolicy()
 o getFreeSpace()

Variables

 o FREESPACE_UNKNOWN
public static final int FREESPACE_UNKNOWN
number of bytes free: unknown

Constructors

 o FSBranchInfo
public FSBranchInfo(int casePolicy,
                    long freeSpace)

Methods

 o getCasePolicy
public final int getCasePolicy()
Returns:
one of the FileSystem.CASEPOLICY_... constants
 o getFreeSpace
public long getFreeSpace()
Returns:
the number of bytes free or FREESPACE_UNKNOWN if unknown

All Packages  Class Hierarchy  This Package  Previous  Next  Index