All Packages Class Hierarchy This Package Previous Next Index
Class kmy.util.match.FileMatchingFilter
kmy.util.match.FileMatchingFilter
- public class FileMatchingFilter
Class FileMatchingFilter provides an implementation for
FilenameFilter, that emulates some of the UNIX csh filename
expansion features. FileMatchingFilter (as any other FilenameFilter)
works only withing a single directory. For pattern syntax
and limitations of this implementation see
description of FileMatchingPattern. Use FileMatchingPattern
instead of FileMatchingFilter if you want to use patterns
like n?t/S*.java (that go into subfolders).
-
FileMatchingFilter(String)
- Constructs new FileMatchingFilter from its string representation
-
accept(File, String)
- this method determines if string candidate matches this pattern.
FileMatchingFilter
public FileMatchingFilter(String pattern)
- Constructs new FileMatchingFilter from its string representation
accept
public boolean accept(File dir,
String candidate)
- this method determines if string candidate matches this pattern.
parameter dir is not used and can be null.
All Packages Class Hierarchy This Package Previous Next Index