public boolean fileMatchesRules(File file) {

        try {
            if(file.exists()) {
                if(includeFilesContainingText.length == 0 && excludeFilesContainingText.length == 0) {
                    return fileMatchesRules(
							getComparableFileName(file));
                } else {
                    return fileMatchesRules(
							getComparableFileName(file),
                            FileSupport.getTextFileFromFS(file));
                }
            }
        } catch (IOException ioe) {
            //at the moment file does not match rules
        }
		return false;
	}
public boolean fileMatchesRules ( File file ) { try { if ( file . exists ( ) ) { if ( includeFilesContainingText . length == 0 && excludeFilesContainingText . length == 0 ) { return fileMatchesRules ( getComparableFileName ( file ) ) ; } else { return fileMatchesRules ( getComparableFileName ( file ) , FileSupport . getTextFileFromFS ( file ) ) ; } } } catch ( IOException ioe ) { } return false ; }
Checks if file matches rules.
@param file
@return true if a file exists, matches include and exclude rules and is successfully parsed in case of inspection of contents
@throws IOException