dasher.net
Class FilterFactory

java.lang.Object
  extended by dasher.net.FilterFactory

 class FilterFactory
extends java.lang.Object

Simple factory for the production of FileFilters which return files whose names match a given regular expression.


Constructor Summary
FilterFactory()
           
 
Method Summary
static java.io.FileFilter makeFilter(java.lang.String regex)
          Produces a new FileFilter which accepts files whose names match a given regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterFactory

FilterFactory()
Method Detail

makeFilter

public static java.io.FileFilter makeFilter(java.lang.String regex)
Produces a new FileFilter which accepts files whose names match a given regular expression.

Parameters:
regex - Regular expression to match
Returns:
FileFilter class which filters for this regex.