Class GenericFileFilter

java.lang.Object
  |
  +--GenericFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class GenericFileFilter
extends java.lang.Object
implements java.io.FileFilter

A file filter that recognize *.*, *.ext (any file with the given extendsion), and name.* (any file with the given name)


Constructor Summary
GenericFileFilter(java.lang.String pattern)
           
GenericFileFilter(java.lang.String pattern, boolean includeDirs)
           
 
Method Summary
 boolean accept(java.io.File pathname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFileFilter

public GenericFileFilter(java.lang.String pattern)

GenericFileFilter

public GenericFileFilter(java.lang.String pattern,
                         boolean includeDirs)
Method Detail

accept

public boolean accept(java.io.File pathname)
Specified by:
accept in interface java.io.FileFilter