org.apache.tools.ant.taskdefs.optional.ssh
public class Directory extends Object
| Constructor Summary | |
|---|---|
| Directory(File directory)
Constructor for a Directory. | |
| Directory(File directory, Directory parent)
Constructor for a Directory. | |
| Method Summary | |
|---|---|
| void | addDirectory(Directory directory)
Add a directory to the child directories. |
| void | addFile(File file)
Add a file to the list of files. |
| Iterator | directoryIterator()
Get an iterator over the child Directories. |
| boolean | equals(Object obj)
The equality method.
|
| Iterator | filesIterator()
Get an iterator over the files. |
| int | fileSize()
Get the number of files in the files attribute. |
| Directory | getChild(File dir)
Get a child directory of this directory. |
| File | getDirectory()
Get the directory file. |
| Directory | getParent()
Get the parent Directory. |
| String[] | getPath()
Get the path components of this directory. |
| static String[] | getPath(String thePath)
Convert a file path to an array of path components.
|
| int | hashCode()
The hashcode method. |
| boolean | isRoot()
Is this a root Directory? |
Parameters: directory a directory.
Parameters: directory a directory parent a parent Directory
Parameters: directory a Directory
Parameters: file a file to add
Returns: an iterator
Parameters: obj the object to compare to
Returns: true if this object has an equal directory field as the other object
Returns: an iterator
Returns: the number of files
Parameters: dir the directory to look for
Returns: the child directory, or null if not found
Returns: the directory file
Returns: the parent Directory.
Returns: the path components as an array of strings.
Parameters: thePath the file path string to convert
Returns: an array of path components
Returns: the hash code of the directory field
Returns: true if there is no parent Directory