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


Field Summary
 
Fields inherited from class org.metasyntactic.io.filesystem.AbstractFileSystem
mountedIn
 
Fields inherited from interface org.metasyntactic.io.filesystem.FileSystem
ESCAPE, ESCAPE_CHAR, SEPARATOR, SEPARATOR_CHAR
 
Constructor Summary
ZipFileSystem(java.util.zip.ZipFile zipFile)
           
 
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 org.metasyntactic.io.filesystem.AbstractFileSystem
getEntry, getEntry, getParent, mount, setParent, toString, unMount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZipFileSystem

public ZipFileSystem(java.util.zip.ZipFile zipFile)
Method Detail

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)