org.aitools.programd.util
Class WildCardFilter
java.lang.Object
org.aitools.programd.util.WildCardFilter
- All Implemented Interfaces:
- FilenameFilter
public final class WildCardFilter
- extends Object
- implements FilenameFilter
Implements a simple wildcard file filter.
Taken, with gratitude from the JMK project. (Under the GNU
LGPL)
- Author:
- John D. Ramsdell, Olivier Refalo
- See Also:
- JMK
|
Constructor Summary |
WildCardFilter(String patternToUse,
char wildCardToUse)
Creates a new WildCardFilter that will use the given pattern and the
given wildcard. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WildCardFilter
public WildCardFilter(String patternToUse,
char wildCardToUse)
- Creates a new WildCardFilter that will use the given pattern and the
given wildcard.
- Parameters:
patternToUse - the pattern to usewildCardToUse - the wildcard to use
accept
public boolean accept(File dir,
String name)
- Specified by:
accept in interface FilenameFilter
- See Also:
FilenameFilter.accept(java.io.File, java.lang.String)