org.wamblee.io
Class RegexFilenameFilter

java.lang.Object
  extended by org.wamblee.io.RegexFilenameFilter
All Implemented Interfaces:
FileFilter

public class RegexFilenameFilter
extends Object
implements FileFilter

Filename filter based on regular expressions.

Author:
Erik Brakkee

Constructor Summary
RegexFilenameFilter(String aRegex)
          Constructs the filter.
 
Method Summary
 boolean accept(File aPathname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexFilenameFilter

public RegexFilenameFilter(String aRegex)
Constructs the filter.

Parameters:
aRegex - Regular expression to filter on.
Method Detail

accept

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


Copyright © 2011. All Rights Reserved.