| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface | |
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private BibtexImporter | |
| private final CitationKeyPatternPreferences | |
| private final FileUpdateMonitor | |
| private final ImporterPreferences | |
| private final List | importers
All import formats. |
| private final ImportFormatPreferences | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | ImportFormatReader(ImporterPreferences importerPreferences, ImportFormatPreferences importFormatPreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, FileUpdateMonitor fileUpdateMonitor)
|
| Modifier and Type | Method and Description |
|---|---|
| private Optional | Returns: Import Format ornull if none matchesCLI-Id cliId)Format for a given CLI-ID. Will return the first format according to the default-order of format that matches the given ID. |
| public SortedSet | |
| public boolean | hasImporterForFile(Path filePath)
Checks whether at least one registered importer supports the file extension. |
| public ParserResult | |
| public ImportFormatReader. | importWithAutoDetection(Path filePath)
Tries to import a file by iterating through the available import filters, and keeping the import that seems most promising. |
| public ImportFormatReader. | importWithAutoDetection(Reader reader)
Tries to import a stream by iterating through the available import filters, and keeping the import that seems most promising. |
| public ImportFormatReader. | Returns: an UnknownFormatImport with the imported entries and metadatathe string to import data)Tries to import a String by iterating through the available import filters, and keeping the import that seems the most promising |
| private ImportFormatReader. | Returns: an UnknownFormatImport with the imported entries and metadatathe function to import the entries with a formatter importDatabase,the function to check whether the source is in the correct format for an importer isRecognizedFormat,used as fallback when the importers did not match importUsingBibtexTries to import entries by iterating through the available import filters, and keeping the import that seems the most promising The implementation idea is to be independent of BufferedInputStream vs. File. |
| public void |
| BIBTEX_FORMAT | back to summary |
|---|---|
| public static final String BIBTEX_FORMAT | |
| bibtexImporter | back to summary |
|---|---|
| private BibtexImporter bibtexImporter | |
| citationKeyPatternPreferences | back to summary |
|---|---|
| private final CitationKeyPatternPreferences citationKeyPatternPreferences | |
| fileUpdateMonitor | back to summary |
|---|---|
| private final FileUpdateMonitor fileUpdateMonitor | |
| importerPreferences | back to summary |
|---|---|
| private final ImporterPreferences importerPreferences | |
| importers | back to summary |
|---|---|
| private final List<Importer> importers All import formats.
Sorted accordingly to | |
| importFormatPreferences | back to summary |
|---|---|
| private final ImportFormatPreferences importFormatPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| ImportFormatReader | back to summary |
|---|---|
| public ImportFormatReader(ImporterPreferences importerPreferences, ImportFormatPreferences importFormatPreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, FileUpdateMonitor fileUpdateMonitor) | |
| getByCliId | back to summary |
|---|---|
| private Optional Format for a given CLI-ID. Will return the first format according to the default-order of format that matches the given ID. | |
| getImporters | back to summary |
|---|---|
| public SortedSet | |
| hasImporterForFile | back to summary |
|---|---|
| public boolean hasImporterForFile(Path filePath) Checks whether at least one registered importer supports the file extension. | |
| importFromFile | back to summary |
|---|---|
| public ParserResult importFromFile(String format, Path file) throws ImportException | |
| importWithAutoDetection | back to summary |
|---|---|
| public ImportFormatReader. Tries to import a file by iterating through the available import filters, and keeping the import that seems most promising. This method last attempts to read this file as bibtex.
| |
| importWithAutoDetection | back to summary |
|---|---|
| public ImportFormatReader. Tries to import a stream by iterating through the available import filters, and keeping the import that seems most promising.
| |
| importWithAutoDetection | back to summary |
|---|---|
| public ImportFormatReader. Tries to import a String by iterating through the available import filters, and keeping the import that seems the most promising
| |
| importWithAutoDetection | back to summary |
|---|---|
| private ImportFormatReader. Tries to import entries by iterating through the available import filters, and keeping the import that seems the most promising The implementation idea is to be independent of BufferedInputStream vs. File. Therefore, functions are passed.
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| Modifier and Type | Method and Description |
|---|---|
| public R |
| apply | back to summary |
|---|---|
| public R apply(T t) throws IOException | |
| Modifier and Type | Method and Description |
|---|---|
| public R |
| apply | back to summary |
|---|---|
| public R apply() throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final ParserResult | parserResult
Record Component accessed by parserResult(). The resulting data |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public final int | |
| public ParserResult | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| format | back to summary |
|---|---|
| private final String format Record Component accessed by format(). The name of the format used | |
| parserResult | back to summary |
|---|---|
| private final ParserResult parserResult Record Component accessed by parserResult(). The resulting data | |
| ImportResult | back to summary |
|---|---|
| public ImportResult(String format, ParserResult parserResult) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| format | back to summary |
|---|---|
| public String format() Record Component getter of format.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| parserResult | back to summary |
|---|---|
| public ParserResult parserResult() Record Component getter of parserResult.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |