| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final BibEntry | |
| private final LinkedFile | |
| private final FilePreferences | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | LinkedFileHandler(LinkedFile fileEntry, BibEntry entry, BibDatabaseContext databaseContext, FilePreferences filePreferences)
|
| Modifier and Type | Method and Description |
|---|---|
| public Optional | Returns: First identified path that matches an existing file. This name can be used in subsequent calls to override the existing file.Check to see if a file already exists in the target directory. |
| public String | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| entry | back to summary |
|---|---|
| private final BibEntry entry | |
| fileEntry | back to summary |
|---|---|
| private final LinkedFile fileEntry | |
| filePreferences | back to summary |
|---|---|
| private final FilePreferences filePreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| LinkedFileHandler | back to summary |
|---|---|
| public LinkedFileHandler(LinkedFile fileEntry, BibEntry entry, BibDatabaseContext databaseContext, FilePreferences filePreferences) | |
| findExistingFile | back to summary |
|---|---|
| public Optional Check to see if a file already exists in the target directory. Search is not case sensitive. | |
| getSuggestedFileName | back to summary |
|---|---|
| public String getSuggestedFileName() | |
| getSuggestedFileName | back to summary |
|---|---|
| public String getSuggestedFileName(String extension) | |
| moveToDefaultDirectory | back to summary |
|---|---|
| public boolean moveToDefaultDirectory() throws IOException | |
| renameToName | back to summary |
|---|---|
| public boolean renameToName(String targetFileName, boolean overwriteExistingFile) throws IOException | |
| renameToSuggestedName | back to summary |
|---|---|
| public boolean renameToSuggestedName() throws IOException | |