|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.connect.FileNode
uk.ac.starlink.connect.FileBranch
public class FileBranch
Branch representing a directory file.
Constructor Summary | |
---|---|
FileBranch(java.io.File dir)
Constructs a branch from a File object representing an existing directory. |
Method Summary | |
---|---|
Node |
createNode(java.lang.String location)
Attempts to construct a new node in the context of this one. |
Node[] |
getChildren()
Returns the array of child nodes belonging to this branch. |
boolean |
isHidingEnabled()
Indicates whether files marked as hidden by the default FileSystemView are shown or not. |
void |
setHidingEnabled(boolean hiding)
Sets whether files marked as hidden by the default FileSystemView are shown or not. |
Methods inherited from class uk.ac.starlink.connect.FileNode |
---|
createNode, equals, getFile, getName, getParent, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.connect.Node |
---|
getName, getParent |
Constructor Detail |
---|
public FileBranch(java.io.File dir)
dir
- directory
java.lang.IllegalArgumentException
- if dir is not a directoryMethod Detail |
---|
public Node[] getChildren()
Branch
getChildren
in interface Branch
public Node createNode(java.lang.String location)
Branch
Leaf.getOutputStream()
call may do so.
The returned node will typically be a child of this branch, but need not be, for instance if name is interpreted as an absolute path.
If the named node cannot be created, null may be returned.
createNode
in interface Branch
location
- name of a node in the context of this branch
public boolean isHidingEnabled()
public void setHidingEnabled(boolean hiding)
hiding
- true to hide hidden files
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |