src/main/java/org/jboss/util/file/FilenamePrefixFilter.java
public boolean accept(final File dir, final String name) {
      if (ignoreCase) {
         return name.toLowerCase().startsWith(prefix);
      }
      else {
         return name.startsWith(prefix);
      }
   }
public boolean accept(final File dir, final String name) {
      if (ignoreCase) {
         return name.toLowerCase().startsWith(prefix);
      }
      else {
         return name.startsWith(prefix);
      }
   }
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.