|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.im4java.utils.FilenameLoader
public class FilenameLoader
This utility-class loads selected filenames of a directory into a list.
Constructor Summary | |
---|---|
FilenameLoader()
The default constructor (no filters, no recursion). |
|
FilenameLoader(java.io.FilenameFilter pFilter)
Create an instance with given filter and recursion-mode |
Method Summary | |
---|---|
void |
load(java.io.File pDir,
java.util.List<java.lang.String> pNames)
Load files in the given directory and store the results in the given list. |
java.util.List<java.lang.String> |
loadFilenames(java.lang.String pDir)
Load filenames in the given directory. |
void |
setFilter(java.io.FilenameFilter pFilter)
Set the filter for this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilenameLoader()
public FilenameLoader(java.io.FilenameFilter pFilter)
pFilter
- The FilenameFilter to useMethod Detail |
---|
public void setFilter(java.io.FilenameFilter pFilter)
pFilter
- The FilenameFilter to usepublic java.util.List<java.lang.String> loadFilenames(java.lang.String pDir)
pDir
- The directory to search
public void load(java.io.File pDir, java.util.List<java.lang.String> pNames)
pDir
- The directory to searchpNames
- The result-list
|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |