All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class org.jos.fs.FSManager

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

public class FSManager
extends Object
Manager for media and file systems; registry for plugging in file systems

TODO: handle CI/CS

Version:
JOS-FileSystem 4 Preview (25-Mar-98)
Author:
Stefan Reich

Class Index

 o FSManager.Entry

Constructor Index

 o FSManager()

Method Index

 o getActionsForFile(String)
may return null
 o getEntries()
 o getFSMountedAt(String)
 o getMainFS()
Unlike regular implementations of FileSystem, the file system returned by this method can handle special dirs (.
 o installPlugIn(FSPlugIn)
 o isMediumRegistered(Medium)
 o mount(String, FileSystem)
 o registerMedium(Medium, String)
 o uninstallPlugIn(FSPlugIn)
 o unmount(String)
 o unregisterMedium(Medium)

Constructors

 o FSManager
public FSManager()

Methods

 o getMainFS
public static FileSystem getMainFS()
Unlike regular implementations of FileSystem, the file system returned by this method can handle special dirs (. and ..) and understands both absolute (/abc/def) and relative path names (abc/def).

 o registerMedium
public static void registerMedium(Medium m,
                                  String name) throws FSException
 o unregisterMedium
public static void unregisterMedium(Medium m) throws FSException
 o isMediumRegistered
public static boolean isMediumRegistered(Medium m)
 o mount
public static void mount(String path,
                         FileSystem fs) throws FSException
 o unmount
public static void unmount(String path) throws FSException
 o getFSMountedAt
public static FileSystem getFSMountedAt(String path)
Parameters:
path - The exact path where the FS has been mounted
 o getEntries
public static FSManager.Entry[] getEntries()
 o installPlugIn
public static void installPlugIn(FSPlugIn plugIn)
 o uninstallPlugIn
public static void uninstallPlugIn(FSPlugIn plugIn)
 o getActionsForFile
public static FSPlugIn.Action[] getActionsForFile(String path)
may return null


All Packages  Class Hierarchy  This Package  Previous  Next  Index