|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.kernow.util.FileListBuilder
public class FileListBuilder
A class that creates a list of files for a given directory by (optionally) recursing the directory. The files added to the list must have a suffix that matches one of the suffixes supplied using the allowedInputSuffix String.
Constructor Summary | |
---|---|
FileListBuilder()
|
Method Summary | |
---|---|
static java.util.ArrayList<java.io.File> |
buildFileList(java.io.File dir,
java.lang.String allowedInputSuffixes,
boolean recurseSubdirectories)
Returns an ArrayList of Files contained in the supplied directory by comparing the suffix of each file with the list of comma separated suffixes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileListBuilder()
Method Detail |
---|
public static java.util.ArrayList<java.io.File> buildFileList(java.io.File dir, java.lang.String allowedInputSuffixes, boolean recurseSubdirectories)
dir
- The directory to build the file list forallowedInputSuffixes
- A comma separated list of allowed input suffixesrecurseSubdirectories
- true
to recusively process subdirectories
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |