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
-
FSManager.Entry
-
-
FSManager()
-
-
getActionsForFile(String)
- may return null
-
getEntries()
-
-
getFSMountedAt(String)
-
-
getMainFS()
- Unlike regular implementations of FileSystem, the file system returned
by this method can handle special dirs (.
-
installPlugIn(FSPlugIn)
-
-
isMediumRegistered(Medium)
-
-
mount(String, FileSystem)
-
-
registerMedium(Medium, String)
-
-
uninstallPlugIn(FSPlugIn)
-
-
unmount(String)
-
-
unregisterMedium(Medium)
-
FSManager
public FSManager()
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).
registerMedium
public static void registerMedium(Medium m,
String name) throws FSException
unregisterMedium
public static void unregisterMedium(Medium m) throws FSException
isMediumRegistered
public static boolean isMediumRegistered(Medium m)
mount
public static void mount(String path,
FileSystem fs) throws FSException
unmount
public static void unmount(String path) throws FSException
getFSMountedAt
public static FileSystem getFSMountedAt(String path)
- Parameters:
- path - The exact path where the FS has been mounted
getEntries
public static FSManager.Entry[] getEntries()
installPlugIn
public static void installPlugIn(FSPlugIn plugIn)
uninstallPlugIn
public static void uninstallPlugIn(FSPlugIn plugIn)
getActionsForFile
public static FSPlugIn.Action[] getActionsForFile(String path)
- may return null
All Packages Class Hierarchy This Package Previous Next Index