ItemDataProvider that holds all
bibliography items read from the file.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | BibliographyFileReader.
Supported file formats for bibliography files |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BibliographyFileReader. | Returns: the file format (orFileFormat#UNKNOWN if the format
could not be determined)the input file bibfile)Reads the first 100 KB of the given bibliography file and tries to determine the file format |
| public BibliographyFileReader. | Returns: the file format (orFileFormat#UNKNOWN if the format
could not be determined)a buffered input stream that supports the mark and reset
methods bis, String the name of the input file (can be null if you don't
know the name) filename)Reads the first bytes of the given input stream and tries to determine the file format. |
| public ItemDataProvider | Returns: the providerthe input file bibfile)Reads all items from an input bibliography file and returns a provider serving these items |
| public ItemDataProvider | Returns: the providerthe input stream bibstream, String the name of the input file (can be null if you don't
know the name) filename)Reads all items from an input stream and returns a provider serving these items. |
| public ItemDataProvider | Returns: the providerthe input stream bibstream, BibliographyFileReader.the bibliography file format formatReads all items from an input stream using the given file format and returns a provider serving these items. |
| BibliographyFileReader | back to summary |
|---|---|
| public BibliographyFileReader() | |
| determineFileFormat | back to summary |
|---|---|
| public BibliographyFileReader. Reads the first 100 KB of the given bibliography file and tries to determine the file format
| |
| determineFileFormat | back to summary |
|---|---|
| public BibliographyFileReader. Reads the first bytes of the given input stream and tries to determine the file format. Resets the input stream to the position it had when the method was called. Reads up to 100 KB and before giving up. Note that you can supply an additional file name to help the method to determine the exact file format. If you don't know the file name you can pass null, but in this case the method's result might be wrong (depending on the input stream's contents).
| |
| readBibliographyFile | back to summary |
|---|---|
| public ItemDataProvider readBibliographyFile(File bibfile) throws FileNotFoundException, IOException Reads all items from an input bibliography file and returns a provider serving these items
| |
| readBibliographyFile | back to summary |
|---|---|
| public ItemDataProvider readBibliographyFile(InputStream bibstream, String filename) throws IOException Reads all items from an input stream and returns a provider serving these items. Note that you can supply an additional file name to help the method to determine the exact bibliography file format. If you don't know the file name you can pass null, but in this case the method's result might try to read the input stream using the wrong file format (depending on the input stream's contents). Also note that the caller is responsible for closing the given input stream.
| |
| readBibliographyFile | back to summary |
|---|---|
| public ItemDataProvider readBibliographyFile(InputStream bibstream, BibliographyFileReader. Reads all items from an input stream using the given file format and returns a provider serving these items.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BibliographyFileReader. | BIBTEX
A BibTeX file |
| public static final BibliographyFileReader. | ENDNOTE
An EndNote file |
| public static final BibliographyFileReader. | JSON_ARRAY
An array of CSL JSON objects |
| public static final BibliographyFileReader. | JSON_OBJECT
A CSL JSON object |
| public static final BibliographyFileReader. | RIS
An RIS file |
| public static final BibliographyFileReader. | UNKNOWN
Unknown file format |
| public static final BibliographyFileReader. | YAML
A YAML document |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BibliographyFileReader. | |
| public static BibliographyFileReader. |
| BIBTEX | back to summary |
|---|---|
| public static final BibliographyFileReader. A BibTeX file | |
| ENDNOTE | back to summary |
|---|---|
| public static final BibliographyFileReader. An EndNote file | |
| JSON_ARRAY | back to summary |
|---|---|
| public static final BibliographyFileReader. An array of CSL JSON objects | |
| JSON_OBJECT | back to summary |
|---|---|
| public static final BibliographyFileReader. A CSL JSON object | |
| RIS | back to summary |
|---|---|
| public static final BibliographyFileReader. An RIS file | |
| UNKNOWN | back to summary |
|---|---|
| public static final BibliographyFileReader. Unknown file format | |
| YAML | back to summary |
|---|---|
| public static final BibliographyFileReader. A YAML document
| |
| FileFormat | back to summary |
|---|---|
| private FileFormat() | |
| valueOf | back to summary |
|---|---|
| public static BibliographyFileReader. | |
| values | back to summary |
|---|---|
| public static BibliographyFileReader. | |