@Immutable public final class Parser extends Object
Rule list.| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
List<Rule> |
parse(InputStream stream,
Charset charset)
Parses all rules from a stream.
|
Rule |
parseLine(String line)
Parses a line for a rule.
|
public List<Rule> parse(InputStream stream, Charset charset) throws IOException
stream - the stream with lines of rules, not nullcharset - the character encoding of that stream, not nullIOException - If reading from the stream failsCopyright © 2016. All rights reserved.