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).


Constructor Index

 o FileMatchingFilter(String)
Constructs new FileMatchingFilter from its string representation

Method Index

 o accept(File, String)
this method determines if string candidate matches this pattern.

Constructors

 o FileMatchingFilter
 public FileMatchingFilter(String pattern)
Constructs new FileMatchingFilter from its string representation

Methods

 o 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