public abstract class FileNode extends java.lang.Object implements Node
File in a local filesystem.| Modifier | Constructor and Description |
|---|---|
protected |
FileNode(java.io.File file)
Constructs a node from a File.
|
| Modifier and Type | Method and Description |
|---|---|
static FileNode |
createNode(java.io.File file)
Creates a new FileNode from a File.
|
boolean |
equals(java.lang.Object other) |
java.io.File |
getFile() |
java.lang.String |
getName()
Returns the name of this node.
|
Branch |
getParent()
Returns the parent branch of this node.
|
int |
hashCode() |
java.lang.String |
toString() |
protected FileNode(java.io.File file)
file - filepublic java.lang.String getName()
Nodepublic Branch getParent()
Nodenull.public java.io.File getFile()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static FileNode createNode(java.io.File file)
file - filefile