|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A File System is a hierarchical setup of Entries. Entries can either hold children (interface Directories), or represent abstract FileSystem entities (such as Files, or Links). All FileSystems are required to contain at least one Directory which represents the Root of the FileSystem.
FileSystems can be mounted within Directories of other FileSystems.
All FileSystem entries are reachable by name of tpye String. This String follows a very simple set of Rules. The root Directory's Name is "/".
Priviliged charaters and their rules:
Field Summary | |
static java.lang.String |
ESCAPE
|
static char |
ESCAPE_CHAR
|
static java.lang.String |
SEPARATOR
|
static char |
SEPARATOR_CHAR
|
Method Summary | |
Entry |
getEntry(java.lang.String name)
Returns the entry denoted by this abstract path string. |
Directory |
getParent()
Returns the Directory of the FileSystem that this FileSystem is mounted in, or null if this FileSystem is not mounted in another |
Directory |
getRoot()
In any given file system there must always be one root from which every FileSystem entry is reachable from. |
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" |
Directory |
setParent(Directory dir)
Sets the directory that this FileSystem is mounted in. |
FileSystem |
unMount(Directory mountedInto,
java.lang.String name)
Unmounts the FileSystem with hte given name from teh specified directory and returns it |
Field Detail |
public static final char SEPARATOR_CHAR
public static final java.lang.String SEPARATOR
public static final char ESCAPE_CHAR
public static final java.lang.String ESCAPE
Method Detail |
public void mount(FileSystem other, Directory mountInto, java.lang.String name) throws NoPermissionException
NoPermissionException
public FileSystem unMount(Directory mountedInto, java.lang.String name) throws NoPermissionException
NoPermissionException
public Directory getRoot()
public Entry getEntry(java.lang.String name) throws NoPermissionException, EntryNotFoundException
NoPermissionException
EntryNotFoundException
public Directory getParent() throws NoPermissionException
NoPermissionException
public Directory setParent(Directory dir) throws NoPermissionException
NoPermissionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |