|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vfs.VFSFile
public class VFSFile
A VFSFile is a leaf item in a virtual file system.
This is a Leaf class in the Composite design pattern whose other classes are VFSItem (Component) and VFSDirectory (Composite).
Constructor Summary | |
---|---|
VFSFile(java.lang.String nm,
VFSDirectory par)
new VFSFile(nm, par) returns a virtual file for a file named nm whose parent directory is par. |
Method Summary | |
---|---|
java.lang.String |
getName()
f.getName() returns the name of itm. |
java.lang.String |
getSuffix()
f.getsuffix() returns the filename suffix for f. |
java.net.URL |
getURL()
f.getURL() returns the URL for f. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VFSFile(java.lang.String nm, VFSDirectory par)
Method Detail |
---|
public java.lang.String getName()
getName
in interface VFSItem
public java.net.URL getURL()
getURL
in interface VFSItem
public java.lang.String getSuffix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |