|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.util.bibtex.parser.BibtexParser
public final class BibtexParser
The parser will parse the BibTex
into a basic AST. Have a look at the different Expanders defined in the
bibtexexpansions package if you need more than that.
Constructor Summary | |
---|---|
BibtexParser(boolean throwAllParseExceptions)
Creates a new BibTexParser . |
Method Summary | |
---|---|
ParseException[] |
getExceptions()
Returns the list of non-fatal exceptions that occurred during parsing. |
void |
parse(BibtexFile bibtexFile,
Reader input)
Parses the input into bibtexFile - don't forget to check getExceptions() afterwards (if you
don't use throwAllParseExceptions which you can configure in the constructor)... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BibtexParser(boolean throwAllParseExceptions)
BibTexParser
.
throwAllParseExceptions
- Setting this to true
means that all exceptions will be thrown immediately. Otherwise, the
parser will skip over things it can't parse and you can use getExceptions()
to retrieve the
exceptions later.Method Detail |
---|
public ParseException[] getExceptions()
ParseException
s.public void parse(BibtexFile bibtexFile, Reader input) throws ParseException, IOException
bibtexFile
- don't forget to check getExceptions()
afterwards (if you
don't use throwAllParseExceptions
which you can configure in the constructor)...
bibtexFile
- The Java
representation of the file.input
- The reader that is used for reading from the file.
ParseException
- If an entry couldn't be parsed. This exception won't be thrown if
throwAllParseExceptions
was disabled within the constructor.
IOException
- If another error occurs while reading.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |