@Override
    public boolean accept(File pathname) {
        try {
            final boolean filesMatched = super.getFilesMatched();
            final boolean accepted = super.accept(pathname);
            if (accepted && filters != null && FileContentSearch.contains(pathname, filters)) {
                if (!filesMatched) {
                    super.setFilesMatched(filesMatched);
                }
                return false;
            }
            return accepted;
        } catch (IOException ex) {
            LOGGER.warn(String.format("Error testing file %s", pathname), ex);
        }
        return false;
    }
@ Override public boolean accept ( File pathname ) { try { final boolean filesMatched = super . getFilesMatched ( ) ; final boolean accepted = super . accept ( pathname ) ; if ( accepted && filters != null && FileContentSearch . contains ( pathname , filters ) ) { if ( ! filesMatched ) { super . setFilesMatched ( filesMatched ) ; } return false ; } return accepted ; } catch ( IOException ex ) { LOGGER . warn ( String . format ( "Error testing file %s" , pathname ) , ex ) ; } return false ; }
Determines if the file can be analyzed by the analyzer.

@param pathname the path to the file
@return true if the file can be analyzed by the given analyzer; otherwise
false