|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.metasyntactic.io.filesystem.AbstractFileSystem
Field Summary | |
protected Directory |
mountedIn
The Directory (of another FileSystem) that I am mounted in |
Fields inherited from interface org.metasyntactic.io.filesystem.FileSystem |
ESCAPE, ESCAPE_CHAR, SEPARATOR, SEPARATOR_CHAR |
Constructor Summary | |
AbstractFileSystem()
|
Method Summary | |
Entry |
getEntry(java.lang.String name)
Returns the entry denoted by this abstract path string. |
Entry |
getEntry(java.lang.String name,
Directory start)
|
Directory |
getParent()
Returns the Directory of the FileSystem that this FileSystem is mounted in, or null if this FileSystem is not mounted in another |
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" |
void |
mount(FileSystem other,
java.lang.String name)
|
Directory |
setParent(Directory dir)
Sets the directory that this FileSystem is mounted in. |
java.lang.String |
toString()
|
FileSystem |
unMount(Directory mountedInto,
java.lang.String name)
Unmounts the FileSystem with hte given name from teh specified directory and returns it |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.metasyntactic.io.filesystem.FileSystem |
getRoot |
Field Detail |
protected Directory mountedIn
Constructor Detail |
public AbstractFileSystem()
Method Detail |
public void mount(FileSystem other, java.lang.String name) throws NoPermissionException
NoPermissionException
public void mount(FileSystem other, Directory mountInto, java.lang.String name) throws NoPermissionException
FileSystem
mount
in interface FileSystem
NoPermissionException
public FileSystem unMount(Directory mountedInto, java.lang.String name) throws NoPermissionException
FileSystem
unMount
in interface FileSystem
NoPermissionException
public java.lang.String toString()
toString
in class java.lang.Object
public Entry getEntry(java.lang.String name) throws NoPermissionException, EntryNotFoundException
FileSystem
getEntry
in interface FileSystem
NoPermissionException
EntryNotFoundException
public Directory getParent()
FileSystem
getParent
in interface FileSystem
public Directory setParent(Directory dir)
FileSystem
setParent
in interface FileSystem
public Entry getEntry(java.lang.String name, Directory start) throws NoPermissionException, EntryNotFoundException
NoPermissionException
EntryNotFoundException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |