src/main/java/org/jboss/util/file/FilePrefixFilter.java
public boolean accept(final File file) {
      if (ignoreCase) {
         return file.getName().toLowerCase().startsWith(prefix);
      }
      else {
         return file.getName().startsWith(prefix);
      }
   }
public boolean accept(final File file) {
      if (ignoreCase) {
         return file.getName().toLowerCase().startsWith(prefix);
      }
      else {
         return file.getName().startsWith(prefix);
      }
   }
public boolean accept ( final File file ) { if ( ignoreCase ) { return file . getName ( ) . toLowerCase ( ) . startsWith ( prefix ) ; } else { return file . getName ( ) . startsWith ( prefix ) ; } }
Check if a file is acceptible.

@param file    The file to check.
@return        <tt>true</tt> if the file is acceptable.
Check if a file is acceptible .