G - Type of object that the parser produces.public abstract class AbstractParser<G> extends java.lang.Object implements Parser<G>
| Constructor and Description |
|---|
AbstractParser() |
| Modifier and Type | Method and Description |
|---|---|
G |
parseFile(java.io.File file)
Parse an object from a file.
|
G |
parseFile(java.lang.String filename)
Parse an object from a file.
|
G |
parseString(java.lang.String input)
Parse a string into an object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileExtensions, getFormat, parsepublic G parseString(java.lang.String input) throws ParseException
ParserparseString in interface Parser<G>input - The input string to read the object from.ParseException - If the input can't get parsed.public G parseFile(java.lang.String filename) throws ParseException, java.io.IOException
ParserparseFile in interface Parser<G>filename - The input filename to read the object from.ParseException - If the input can't get parsed.java.io.IOException - If readig the input fails.public G parseFile(java.io.File file) throws ParseException, java.io.IOException
ParserparseFile in interface Parser<G>file - The input file to read the object from.ParseException - If the input can't get parsed.java.io.IOException - If readig the input fails.