org.metasyntactic.io.filesystem.zip
Class ZipFileSystem
java.lang.Object
|
+--org.metasyntactic.io.filesystem.AbstractFileSystem
|
+--org.metasyntactic.io.filesystem.zip.ZipFileSystem
- All Implemented Interfaces:
- FileSystem
- public class ZipFileSystem
- extends AbstractFileSystem
Method Summary |
Directory |
getRoot()
In any given file system there must always be one root from which every
FileSystem entry is reachable from. |
void |
init()
|
static void |
main(java.lang.String[] args)
|
void |
mount(FileSystem other,
Directory mountInto,
java.lang.String name)
Mounts the other file system into the specified directroy of this file
system and gives it the name "name" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ZipFileSystem
public ZipFileSystem(java.util.zip.ZipFile zipFile)
init
public void init()
mount
public void mount(FileSystem other,
Directory mountInto,
java.lang.String name)
throws NoPermissionException
- Description copied from interface:
FileSystem
- Mounts the other file system into the specified directroy of this file
system and gives it the name "name"
- Specified by:
mount
in interface FileSystem
- Overrides:
mount
in class AbstractFileSystem
NoPermissionException
getRoot
public Directory getRoot()
- Description copied from interface:
FileSystem
- In any given file system there must always be one root from which every
FileSystem entry is reachable from. In file systems such as Unix this
is simply / . However, when mapping something like Windows, a virtual
root must be provided. Presumably one that all the Windows drives (a:
b: c: etc.) are themselves mounted in.
- Returns:
- The root directory of this FileSystem
main
public static void main(java.lang.String[] args)