public class Parser extends Object
| Constructor and Description |
|---|
Parser()
Creates a parser using the regular expression yaml file bundled in the jar.
|
Parser(InputStream regexYaml)
Creates a parser using the supplied regular expression yaml file.
|
| Modifier and Type | Method and Description |
|---|---|
Client |
parse(String agentString) |
Device |
parseDevice(String agentString) |
OS |
parseOS(String agentString) |
UserAgent |
parseUserAgent(String agentString) |
public Parser()
throws IOException
IOException - if there's a problem reading the file from the classpathpublic Parser(InputStream regexYaml)
regexYaml - the yaml file containing the regular expressionsCopyright © 2019. All rights reserved.