src/main/java/org/jboss/util/file/FilenameSuffixFilter.java
public boolean accept(final File dir, final String name) {
      if (ignoreCase) {
         return name.toLowerCase().endsWith(suffix);
      }
      else {
         return name.endsWith(suffix);
      }
   }
public boolean accept(final File dir, final String name) {
      if (ignoreCase) {
         return name.toLowerCase().endsWith(suffix);
      }
      else {
         return name.endsWith(suffix);
      }
   }
public boolean accept ( final File dir , final String name ) { if ( ignoreCase ) { return name . toLowerCase ( ) . endsWith ( suffix ) ; } else { return name . endsWith ( suffix ) ; } }
Check if a file is acceptible.

@param dir  The directory the file resides in.
@param name The name of the file.
@return     <tt>true</tt> if the file is acceptable.
Check if a file is acceptible .