net.hblok.io
Class RegexFilenameFilter

java.lang.Object
  extended by net.hblok.io.RegexFilenameFilter
All Implemented Interfaces:
FilenameFilter

public class RegexFilenameFilter
extends Object
implements FilenameFilter

FilenameFilter where the only the filename name is matched against the regular expression string given as a constructor to this filter.

Author:
Havard Rast Blok

Constructor Summary
RegexFilenameFilter(String regex)
           
 
Method Summary
 boolean accept(File dir, String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexFilenameFilter

public RegexFilenameFilter(String regex)
Method Detail

accept

public boolean accept(File dir,
                      String name)
Specified by:
accept in interface FilenameFilter

toString

public String toString()
Overrides:
toString in class Object