|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.connect.FileNode
public abstract class FileNode
Node representing a file File
in a local filesystem.
Constructor Summary | |
---|---|
protected |
FileNode(java.io.File file)
Constructs a node from a File. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected FileNode(java.io.File file)
file
- fileMethod Detail |
---|
public java.lang.String getName()
Node
getName
in interface Node
public Branch getParent()
Node
getParent
in interface Node
public java.io.File getFile()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static FileNode createNode(java.io.File file)
file
- file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |