@ThreadSafe public class GrokParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GROK_SCHEMA
The grok assembly schema file location.
|
| Constructor and Description |
|---|
GrokParser() |
| Modifier and Type | Method and Description |
|---|---|
AssemblyData |
parse(File file)
Parses the given XML file and returns the assembly data.
|
AssemblyData |
parse(InputStream inputStream)
Parses the given XML stream and returns the contained assembly data.
|
public static final String GROK_SCHEMA
public AssemblyData parse(File file) throws GrokParseException
file - an XML file containing assembly dataGrokParseException - thrown if the XML file cannot be parsedpublic AssemblyData parse(InputStream inputStream) throws GrokParseException
inputStream - an InputStream containing assembly dataGrokParseException - thrown if the XML cannot be parsedCopyright © 2012–2020 OWASP. All rights reserved.