|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
org.ceryle.util.DirectoryList
public class DirectoryList
An extension of File that populates a provided Stack with a list of files matching a file filter, recursively processing subdirectories. If the filter is not set (ie., it is null), all files are matched.
| Field Summary | |
|---|---|
static boolean |
useURLs
When true, the form of returned files will be as 'file:' URLs. |
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
DirectoryList(File directory,
Stack files,
FileFilter filter)
Constructor with a File directory, the Stack files to be populated, and the optional FileFilter filter to be used. |
|
DirectoryList(String directoryName,
Stack files,
FileFilter filter)
Constructor with a String directoryName, the Stack files to be populated, and the optional FileFilter filter to be used. |
|
| Method Summary | |
|---|---|
void |
addPathname(int depth)
Add path file name to Vector listing. |
void |
buildList()
List all files in the current directory, using the internal list of file extensions as filter. |
void |
buildList(int depth)
Recursively list all files in directory to depth depth, using the file filter to determine acceptable files. |
void |
setFilter(FileFilter filter)
Set the FileFilter used to filter. |
| Methods inherited from class java.io.File |
|---|
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean useURLs
| Constructor Detail |
|---|
public DirectoryList(String directoryName,
Stack files,
FileFilter filter)
public DirectoryList(File directory,
Stack files,
FileFilter filter)
| Method Detail |
|---|
public void addPathname(int depth)
public void setFilter(FileFilter filter)
public void buildList()
public void buildList(int depth)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||