| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final Pattern | |
| private static final String | |
| private final Character | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | RegExpBasedFileFinder(String
The expression deciding which names are acceptable. regExp, Character keywordDelimiter)
|
| Modifier and Type | Method and Description |
|---|---|
| private Pattern | createFileNamePattern(String[] fileParts, String extensionRegExp, BibEntry entry)
Creates a Pattern that matches the file name corresponding to the last element of |
| public List | Returns: A list of files paths matching the given criteria.The entry to search for. entry, List<Path> The root directories to search. directories, List<String> The extensions that are acceptable. extensions)Implements org. Method for searching for files using regexp. |
| private List | Returns: Will return the first file found to match the given criteria or null if none was found.non-null entry, List<Path> A set of root directories to start the search from. Paths are returned relative to these directories if relative is set to true. These directories will not be expanded or anything. Use the file attribute for this. dirs, String extensionRegExp)Searches the given directory and filename pattern for a file for the BibTeX entry. |
| private List | |
| private List | Returns: date candidates in decreasing specificity, or an empty list if no date information is availablethe bibliography entry to extract date information from entry)Builds date candidates for |
| private boolean | |
| private static String | Returns: a String representation of a regex matching the expanded content and the expanded content cleaned for file name usethe expanded content of a bracketed expression expandedContent)Helper method for both exact matching (if the file name were not created by JabRef) and cleaned file name matching. |
| DATE_MARKER_PATTERN | back to summary |
|---|---|
| private static final Pattern DATE_MARKER_PATTERN | |
| ESCAPE_PATTERN | back to summary |
|---|---|
| private static final Pattern ESCAPE_PATTERN | |
| EXT_MARKER | back to summary |
|---|---|
| private static final String EXT_MARKER | |
| keywordDelimiter | back to summary |
|---|---|
| private final Character keywordDelimiter | |
| regExp | back to summary |
|---|---|
| private final String regExp | |
| RegExpBasedFileFinder | back to summary |
|---|---|
pack-priv RegExpBasedFileFinder(String regExp, Character keywordDelimiter)
| |
| createFileNamePattern | back to summary |
|---|---|
| private Pattern createFileNamePattern(String[] fileParts, String extensionRegExp, BibEntry entry) throws IOException Creates a Pattern that matches the file name corresponding to the last element of
| |
| findAssociatedFiles | back to summary |
|---|---|
| public List Implements org. Method for searching for files using regexp. A list of extensions and directories can be given. | |
| findFile | back to summary |
|---|---|
| private List Searches the given directory and filename pattern for a file for the BibTeX entry. Used to fix: http://sourceforge.net/tracker/index.php?func=detail&aid=1503410&group_id=92314&atid=600309 Requirements:
Syntax scheme for file:
| |
| findFile | back to summary |
|---|---|
| private List The actual work-horse. Will find absolute filepaths starting from the given directory using the given regular expression string for search. | |
| getDateFallbackCandidates | back to summary |
|---|---|
| private List Builds date candidates for Uses the For example, a date of | |
| isSubDirectory | back to summary |
|---|---|
| private boolean isSubDirectory(Path rootDirectory, Path path) | |
| toFileNameRegex | back to summary |
|---|---|
| private static String toFileNameRegex(String expandedContent) Helper method for both exact matching (if the file name were not created by JabRef) and cleaned file name matching. | |