com.sun.faban.harness
Class WildcardFileFilter
java.lang.Object
com.sun.faban.harness.WildcardFileFilter
- All Implemented Interfaces:
- FileFilter, Serializable
public class WildcardFileFilter
- extends Object
- implements FileFilter
A file name filter that takes wildcards characters '*' and '?' and
interprets them like a shell. For example, "*.exe" will match all
files starting ending with .exe extension.
- See Also:
- Serialized Form
Method Summary |
boolean |
accept(File pathname)
Tests whether or not the specified abstract pathname should be
included in a pathname list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WildcardFileFilter
public WildcardFileFilter(String pattern)
- Constructs a wildcard file filter with the given pattern.
- Parameters:
pattern
- The file name pattern
accept
public boolean accept(File pathname)
- Tests whether or not the specified abstract pathname should be
included in a pathname list.
- Specified by:
accept
in interface FileFilter
- Parameters:
pathname
- The abstract pathname to be tested
- Returns:
true
if and only if pathname
should be included