| Modifier and Type | Field and Description |
|---|---|
| private final BibEntry | |
| private final FilePreferences | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | DocumentReader(BibEntry
Must not be null and must have at least one LinkedFile. bibEntry, FilePreferences filePreferences)Creates a new DocumentReader using a BibEntry. |
| Modifier and Type | Method and Description |
|---|---|
| private void | addContentIfNotEmpty(org.
|
| private void | |
| private void | |
| private void | |
| private boolean | |
| public static String | |
| public Optional | Returns: An Optional of a Lucene Document with the (meta)data. Can be empty if there is a problem reading the LinkedFile.Reads a LinkedFile of a BibEntry and converts it into a Lucene Document which is then returned. |
| public List | Returns: A List of Documents with the (meta)data. Can be empty if there is a problem reading the LinkedFile.Reads each LinkedFile of a BibEntry and converts them into Lucene Documents which are then returned. |
| private List |
| entry | back to summary |
|---|---|
| private final BibEntry entry | |
| filePreferences | back to summary |
|---|---|
| private final FilePreferences filePreferences | |
| HYPHEN_LINEBREAK_PATTERN | back to summary |
|---|---|
| private static final Pattern HYPHEN_LINEBREAK_PATTERN | |
| LINEBREAK_WITHOUT_PERIOD_PATTERN | back to summary |
|---|---|
| private static final Pattern LINEBREAK_WITHOUT_PERIOD_PATTERN | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| DocumentReader | back to summary |
|---|---|
| public DocumentReader(BibEntry bibEntry, FilePreferences filePreferences) Creates a new DocumentReader using a BibEntry.
| |
| addContentIfNotEmpty | back to summary |
|---|---|
| private void addContentIfNotEmpty(org. | |
| addIdentifiers | back to summary |
|---|---|
| private void addIdentifiers(org. | |
| addMetaData | back to summary |
|---|---|
| private void addMetaData(org. | |
| addStringField | back to summary |
|---|---|
| private void addStringField(org. | |
| isValidField | back to summary |
|---|---|
| private boolean isValidField(String value) | |
| mergeLines | back to summary |
|---|---|
| public static String mergeLines(String text) | |
| readLinkedPdf | back to summary |
|---|---|
| public Optional Reads a LinkedFile of a BibEntry and converts it into a Lucene Document which is then returned. | |
| readLinkedPdfs | back to summary |
|---|---|
| public List Reads each LinkedFile of a BibEntry and converts them into Lucene Documents which are then returned.
| |
| readPdfContents | back to summary |
|---|---|
| private List | |