|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvfs.VFSRoot
public class VFSRoot
A VFSRoot is the root of a virtual file system. It provides access to the root directory and provides an escort method for escorting visitors through the file system.
Constructor Summary | |
---|---|
VFSRoot(java.lang.Class c)
new VFSRoot(c) returns a virtual file system root for the package that contains c. |
|
VFSRoot(java.lang.Class c,
java.lang.String nm)
new VFSRoot(c, nm) returns a virtual file system root for the directory named nm in the classpath entry containing c. |
Method Summary | |
---|---|
void |
escort(VFSVisitor v)
vfsr.escort(v) escorts v through the virtual file system whose root is vfsr. |
VFSDirectory |
getRootDirectory()
vfsr.getRootDirectory() returns the topmost directory for vfsr. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VFSRoot(java.lang.Class c, java.lang.String nm)
c
- the class that determines the classpath entrynm
- the name of the directorypublic VFSRoot(java.lang.Class c)
c
- the class that determines the packageMethod Detail |
---|
public VFSDirectory getRootDirectory()
public void escort(VFSVisitor v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |