Class FileContentSearch
java.lang.Object
org.owasp.dependencycheck.utils.search.FileContentSearch
Utility for searching files.
- Version:
- $Id: $Id
- Author:
- Jeremy Long
-
Method Summary
-
Method Details
-
contains
Determines if the given file contains the given regular expression.- Parameters:
file- the file to testpattern- the pattern used to test the file- Returns:
trueif the regular expression matches the file content; otherwisefalse- Throws:
IOException- thrown if there is an error reading the file
-
contains
Determines if the given file contains the given regular expressions.- Parameters:
file- the file to testpatterns- the array of patterns used to test the file- Returns:
trueif one of the regular expressions matches the file content; otherwisefalse- Throws:
IOException- thrown if there is an error reading the file
-