Class GrokParser
java.lang.Object
org.owasp.dependencycheck.xml.assembly.GrokParser
A simple validating parser for XML Grok Assembly XML files.
- Author:
- Jeremy Long
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses the given XML file and returns the assembly data.parse(InputStream inputStream) Parses the given XML stream and returns the contained assembly data.
-
Field Details
-
GROK_SCHEMA
-
-
Constructor Details
-
GrokParser
public GrokParser()
-
-
Method Details
-
parse
Parses the given XML file and returns the assembly data.- Parameters:
file- an XML file containing assembly data- Returns:
- the assembly data
- Throws:
GrokParseException- thrown if the XML file cannot be parsed
-
parse
Parses the given XML stream and returns the contained assembly data.- Parameters:
inputStream- an InputStream containing assembly data- Returns:
- the assembly data
- Throws:
GrokParseException- thrown if the XML cannot be parsed
-