public class BibtexParser
extends java.lang.Object
Constructor and Description |
---|
BibtexParser(java.io.Reader in) |
Modifier and Type | Method and Description |
---|---|
void |
checkEntryTypes(ParserResult _pr) |
static java.util.Collection<BibtexEntry> |
fromString(java.lang.String bibtexString)
Parses BibtexEntries from the given string and returns the collection of all entries found.
|
static boolean |
isRecognizedFormat(java.io.Reader inOrig)
Check whether the source is in the correct format for this importer.
|
ParserResult |
parse()
Will parse the BibTex-Data found when reading from reader.
|
static ParserResult |
parse(java.io.Reader in)
Shortcut usage to create a Parser and read the input.
|
BibtexEntry |
parseEntry(BibtexEntryType tp) |
java.lang.String |
parsePreamble() |
BibtexString |
parseString() |
static BibtexEntry |
singleFromString(java.lang.String bibtexString)
Parses BibtexEntries from the given string and returns one entry found (or null if none found)
It is undetermined which entry is returned, so use this in case you know there is only one entry in the string.
|
public static ParserResult parse(java.io.Reader in) throws java.io.IOException
in
- -
Reader to read fromjava.io.IOException
public static java.util.Collection<BibtexEntry> fromString(java.lang.String bibtexString)
bibtexString
- public static BibtexEntry singleFromString(java.lang.String bibtexString)
bibtexString
- public static boolean isRecognizedFormat(java.io.Reader inOrig) throws java.io.IOException
java.io.IOException
public ParserResult parse() throws java.io.IOException
java.io.IOException
public BibtexString parseString() throws java.io.IOException
java.io.IOException
public java.lang.String parsePreamble() throws java.io.IOException
java.io.IOException
public BibtexEntry parseEntry(BibtexEntryType tp) throws java.io.IOException
java.io.IOException
public void checkEntryTypes(ParserResult _pr)