|
org.netbeans.modules.masterfs/1 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.modules.masterfs.providers.MountSupport
public final class MountSupport
Enables to mount and unmount filesystems. The only way, how to get instance of MountSupport is to implement org.netbeans.modules.masterfs.providers.FileSystemProvider#initialize and keep passed instance of MountSupport. So, there is important to know, that only filesystems, that have registered implementation of FileSystemProvider can be mounted. There is obvious, that only already mounted filesystems can be unmounted.
Method Summary | |
---|---|
void |
mount(String mountPoint,
FileSystem fs)
Mounts a file system on mount point defined by parameter mountPoint. |
void |
unmount(FileSystem fs)
Unmounts already mounted filesystem. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void mount(String mountPoint, FileSystem fs) throws IOException
mountPoint
- corresponds to java.io.File.getAbstractPath.
But be aware, that this doesn't mean, that such file must really exist.
MountPoint may also address virtual location.fs
- filesystem that should be mounted. FileObject hierarchy within a delegate FileSystem
must precisely match the File hierarchy and must not hide any files which exist on disk.
IOException
- when mount fails e.g.: there already exists mounted filesystem
assigned to passed mount point.public void unmount(FileSystem fs) throws IOException
fs
- filesystem, taht should be unmounted
IOException
- when unmount fails e.g.: passed fs hasn't
been mounted yet.
|
org.netbeans.modules.masterfs/1 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |