@AptParser public class RegexParser extends AbstractParser<FiniteAutomaton> implements Parser<FiniteAutomaton>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORMAT |
| Constructor and Description |
|---|
RegexParser() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getFileExtensions()
Get a list of recommended file extensions.
|
java.lang.String |
getFormat()
Which format does this parser understand?
|
FiniteAutomaton |
parse(java.io.InputStream is)
Parse an input stream into an object.
|
parseFile, parseFile, parseStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseFile, parseFile, parseStringpublic static final java.lang.String FORMAT
public java.lang.String getFormat()
ParsergetFormat in interface Parser<FiniteAutomaton>public java.util.List<java.lang.String> getFileExtensions()
ParsergetFileExtensions in interface Parser<FiniteAutomaton>public FiniteAutomaton parse(java.io.InputStream is) throws ParseException, java.io.IOException
Parserparse in interface Parser<FiniteAutomaton>is - The input stream to read the object from.ParseException - If the input can't get parsed.java.io.IOException - If readig the input fails.