org.aitools.programd.util
Class SuffixFilenameFilter

java.lang.Object
  extended by org.aitools.programd.util.SuffixFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class SuffixFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter

Provides a simple filename filter given an array of acceptable suffixes.

Author:
Noel Bush

Field Summary
private static java.lang.String[] SUFFIXES
          The suffixes that will be used to determine acceptable files.
 
Constructor Summary
SuffixFilenameFilter(java.lang.String[] suffixes)
          Constructs a new filename filter given an array of acceptable suffixes.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUFFIXES

private static java.lang.String[] SUFFIXES
The suffixes that will be used to determine acceptable files.

Constructor Detail

SuffixFilenameFilter

public SuffixFilenameFilter(java.lang.String[] suffixes)
Constructs a new filename filter given an array of acceptable suffixes.

Parameters:
suffixes - the acceptable suffixes
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter
See Also:
FilenameFilter.accept(java.io.File, java.lang.String)