net.hblok.io
Class RegexFileFilter

java.lang.Object
  extended by net.hblok.io.RegexFileFilter
All Implemented Interfaces:
FileFilter

public class RegexFileFilter
extends Object
implements FileFilter

Filefilter where the full canonical path name is matched against the regular expression string given as a constructor to this filter.

Author:
Havard Rast Blok

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

Constructor Detail

RegexFileFilter

public RegexFileFilter(String regex)
Method Detail

accept

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

toString

public String toString()
Overrides:
toString in class Object