|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pf.file.FileDirectoryScanner
This scanner starts at a specified base directory and collects information
about all contained files and sub directories and their contained files and
so on.
As a result it returns a TableOfContents object that contains all the
collected information.
| Constructor Summary | |
FileDirectoryScanner()
Initialize the new instance with default values. |
|
| Method Summary | |
TableOfContents |
scanDirectory(java.lang.String dir)
Scan the specified directory and return the table of contents that holds information about all found sub directories and files. |
TableOfContents |
scanDirectory(java.lang.String dir,
java.lang.String filePattern)
Scan the specified directory and return the table of contents that holds information about all found sub directories and all files that match the specified pattern. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileDirectoryScanner()
| Method Detail |
public TableOfContents scanDirectory(java.lang.String dir)
throws java.io.IOException
dir - The directory from which to start the scan
java.io.IOException - If the start directory doesn't exist or is no directory
public TableOfContents scanDirectory(java.lang.String dir,
java.lang.String filePattern)
throws java.io.IOException
dir - The directory from which to start the scanfilePattern - A pattern for the files to include into the TOC
java.io.IOException - If the start directory doesn't exist or is no directory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||