src2xml
Class FileUtils.RegexFilenameFilter

java.lang.Object
  extended by src2xml.FileUtils.RegexFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter
Enclosing class:
FileUtils

public static class FileUtils.RegexFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter

A class that implements a regexp file filter


Constructor Summary
FileUtils.RegexFilenameFilter(java.lang.String regex)
          Class constructor
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Tests if a specified file should be included in a file list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils.RegexFilenameFilter

public FileUtils.RegexFilenameFilter(java.lang.String regex)
                              throws java.util.regex.PatternSyntaxException
Class constructor

Parameters:
regex - the regular expression of the filter
Throws:
java.util.regex.PatternSyntaxException
See Also:
Pattern
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Tests if a specified file should be included in a file list

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the directory in which the file was found
name - the name of the file
Returns:
true if the name passes the filter