org.abraracourcix.alipes.common
Class RegExpFileFilter

java.lang.Object
  extended byorg.abraracourcix.alipes.common.RegExpFileFilter
All Implemented Interfaces:
java.io.FileFilter

public final class RegExpFileFilter
extends java.lang.Object
implements java.io.FileFilter

A file filter which takes a regular expression and filters files in a single directory

Author:
jdt

Constructor Summary
RegExpFileFilter(java.lang.String regexp, java.io.File rootDirectory)
          Constructor
 
Method Summary
 boolean accept(java.io.File file)
          Inherited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegExpFileFilter

public RegExpFileFilter(java.lang.String regexp,
                        java.io.File rootDirectory)
Constructor

Parameters:
regexp - the regular expression to match
rootDirectory - the directory in which to search - can be null if we don't care
Method Detail

accept

public boolean accept(java.io.File file)
Inherited

Specified by:
accept in interface java.io.FileFilter
Parameters:
file - file to be tested
Returns:
true if file matches
See Also:
FileFilter.accept(java.io.File)


Copyright © 2004-2005 Abraracourcix. All Rights Reserved.