|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
| Method Summary | |
|---|---|
boolean |
canRead()
Retrieves information about wether access to read is allowed. |
boolean |
canWrite()
Retrieves information about wether access to read is allowed. |
int |
compareTo(Node node)
Compare this node to another node by comparing their names. |
void |
delete()
Deletes the node. |
boolean |
equals(Node node)
|
String |
getBaseName()
Retrieves the name without suffix like this: myimage.jpg = myimage mybundle.app = mybundle testfile.dit.dat = testfile.dit testdir = testdir |
FileSystem |
getFileSystem()
Retrieves the filesystem which this node belongs to. |
Date |
getLastModified()
Retrieves the date for last modification. |
String |
getName()
Retrieves the name of the node. |
Directory |
getParent()
Retrieves the parent directory of this node. |
Path |
getPath()
|
String |
getSuffix()
Retrieves the suffix of the node or null if no suffix, like this:. |
boolean |
isDirectory()
Checks wether this node is a directory. |
boolean |
isFile()
Checks wether this node is a file. |
boolean |
isHidden()
Checks wether this node is hidden. |
void |
moveTo(Directory newParent)
Moves this node to a new directory. |
void |
moveTo(Directory newParent,
String newName)
Moves this node to a new directory and renames it. |
void |
setLastModified(Date date)
Sets the date for last modification. |
void |
setName(String name)
Renames the node. |
URI |
toUri()
|
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
void moveTo(Directory newParent)
throws IOException
newParent - The directory the node should be moved to.
IOException - Thrown if an error occurs while the node is being moved.
void moveTo(Directory newParent,
String newName)
throws IOException
newParent - The directory the node should be moved to.newName - The new name of the node.
IOException - Thrown if an error occurs while the node is being moved or renamed.
void setName(String name)
throws IOException
name - The new name of the node.
IOException - Thrown if an error occurs while renaming the node.String getName()
String getBaseName()
String getSuffix()
Directory getParent()
throws FileNotFoundException
FileNotFoundException - Thrown if parent directory could not be found - would normally only occur if called on the root directory.FileSystem getFileSystem()
boolean isDirectory()
boolean isFile()
boolean isHidden()
Date getLastModified()
void setLastModified(Date date)
date - The date.int compareTo(Node node)
node - The node to compare with.
void delete()
throws IOException
IOException - Thrown if an error occurs during deletion.URI toUri()
boolean equals(Node node)
Path getPath()
boolean canRead()
boolean canWrite()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||