Class HintParser
java.lang.Object
org.owasp.dependencycheck.xml.hints.HintParser
A simple validating parser for XML Hint Rules.
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the hint rules.Returns the vendor duplicating hint rules.voidparseHints(File file) Parses the given XML file and returns a list of the hints contained.voidparseHints(InputStream inputStream) Parses the given XML stream and returns a list of the hint rules contained.
-
Constructor Details
-
HintParser
public HintParser()
-
-
Method Details
-
getHintRules
-
getVendorDuplicatingHintRules
Returns the vendor duplicating hint rules.- Returns:
- the vendor duplicating hint rules
-
parseHints
Parses the given XML file and returns a list of the hints contained.- Parameters:
file- an XML file containing hints- Throws:
HintParseException- thrown if the XML file cannot be parsed
-
parseHints
Parses the given XML stream and returns a list of the hint rules contained.- Parameters:
inputStream- an InputStream containing hint rules- Throws:
HintParseException- thrown if the XML cannot be parsedSAXException- thrown if the XML cannot be parsed
-