|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectujap.bibi.ManualBibtexFileReader
Nested Class Summary | |
private static class |
ManualBibtexFileReader.ReturnValue
|
Field Summary | |
private int |
line
|
private org.apache.log4j.Category |
LOG
|
private static int |
LOOK_FOR_FIELD
|
private static int |
LOOK_FOR_TYPE
|
private PushbackReader |
push
|
private BufferedReader |
r
|
Constructor Summary | |
ManualBibtexFileReader(File file)
A ManualBibtexFileReader that reads BibTeX entries from the given file, using a FileReader. |
|
ManualBibtexFileReader(Reader f)
A ManualBibtexFileReader that reads BibTeX entries from a Reader. |
|
ManualBibtexFileReader(String file)
A ManualBibtexFileReader that reads BibTeX entries from the file with the specified name, using a FileReader. |
Method Summary | |
private boolean |
isWhitespace(char c)
|
private ManualBibtexFileReader.ReturnValue |
lookFor(String a,
char c)
will always return a value >= 0 (i.e. |
private char |
readChar()
|
Bibfile |
readFile()
entry point. |
private String |
readName()
read a field name, including the following '=' sign and ignoring whitespace may return null if the entry is finished here. |
private String |
readValue()
read a field value, can span multiple lines, must be in one of the following formats: "surrounded by double quotes and followed by a comma, without containing double quotes inside.", {surrounded by curly brackets and followed by a comma. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int LOOK_FOR_TYPE
private static final int LOOK_FOR_FIELD
private org.apache.log4j.Category LOG
private int line
private BufferedReader r
private PushbackReader push
Constructor Detail |
public ManualBibtexFileReader(String file) throws IOException
public ManualBibtexFileReader(File file) throws IOException
public ManualBibtexFileReader(Reader f)
Method Detail |
public Bibfile readFile() throws IOException, ParseException
IOException
ParseException
private ManualBibtexFileReader.ReturnValue lookFor(String a, char c) throws IOException, ParseException
a
- c
-
IOException
ParseException
private String readName() throws IOException, ParseException
IOException
ParseException
private boolean isWhitespace(char c)
private String readValue() throws IOException, ParseException
IOException
ParseException
private char readChar() throws IOException
IOException
|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |