Package uk.ac.starlink.connect
Class FileNode
java.lang.Object
uk.ac.starlink.connect.FileNode
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
FileBranch
Node representing a file
File
in a local filesystem.- Since:
- 18 Feb 2005
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileNode
Constructs a node from a File.- Parameters:
file
- file
-
-
Method Details
-
getName
Description copied from interface:Node
Returns the name of this node. This should not be an entire pathname, that is, it should not include the name of its parent. -
getParent
Description copied from interface:Node
Returns the parent branch of this node. If this node is at the root of its tree, it will returnnull
. -
getFile
-
equals
-
hashCode
public int hashCode() -
toString
-
createNode
Creates a new FileNode from a File.- Parameters:
file
- file- Returns:
- branch or leaf representing
file
-