|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The base interface that all FileSystem elements must implement to be allowed to be contained within the FileSystem. Currently Files and Directories can be stored in the FileSystem. In the future conveniences, such as Links, will hopefully be added.
All entries have a name in the form of a String, and a unique path with which they can be reached from the root of any file System. The name does not have to be unique but the path must be. For example /java/util/Set.java and /org/metasyntactic/math/Set.java both have the same name "Set.java", however, their path names are unique
NOTE! Entry names should be case sensitive. However, if the underlying FileSystem does not support this feature then too bad!
| Method Summary | |
boolean |
delete()
Deletes this entry from the FileSystem. |
boolean |
equals(java.lang.Object o)
|
FileSystem |
getFileSystem()
Returns the FileSystem that this entry is contained in |
java.lang.String |
getName()
Returns the name of the file or directory denoted by this abstract pathname. |
Directory |
getParent()
Returns the directory that this Entry is located in. |
java.lang.String |
getPath()
Returns the absolute pathname string of this directory. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Method Detail |
public FileSystem getFileSystem()
public java.lang.String getName()
public java.lang.String getPath()
throws NoPermissionException
NoPermissionException
public Directory getParent()
throws NoPermissionException
NoPermissionException
public boolean delete()
throws NoPermissionException
NoPermissionExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||