| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private BlankLineBehaviour | |
| private boolean | |
| private final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final LayoutFormatterPreferences | |
| private final String | |
| private static final Logger | |
| private final SelfContainedSaveOrder |
| Access | Constructor and Description |
|---|---|
| public | TemplateExporter(String
Name to display to the user. displayName, String Name to call this format in the console. consoleName, String Name of the main layout file. lfFileName, String Directory in which to find the layout file. directory, FileType Should contain the . (for instance .txt). extension)Initialize another export format based on templates stored in dir with layoutFile lfFilename. |
| public | TemplateExporter(String
to display to the user and to call this format in the console. name, String Name of the main layout file. lfFileName, String May or may not contain the . (for instance .txt). extension, LayoutFormatterPreferences layoutPreferences, SelfContainedSaveOrder saveOrder)Initialize another export format based on templates stored in dir with layoutFile lfFilename. |
| public | TemplateExporter(String
Name to display to the user. displayName, String Name to call this format in the console. consoleName, String Name of the main layout file. lfFileName, String Directory in which to find the layout file. directory, FileType Should contain the . (for instance .txt). extension, LayoutFormatterPreferences layoutPreferences, SelfContainedSaveOrder saveOrder)Initialize another export format based on templates stored in dir with layoutFile lfFilename. |
| public | TemplateExporter(String
Name to display to the user. displayName, String Name to call this format in the console. consoleName, String Name of the main layout file. lfFileName, String Directory in which to find the layout file. directory, FileType Should contain the . (for instance .txt). extension, LayoutFormatterPreferences Preferences for layout layoutPreferences, SelfContainedSaveOrder saveOrder, BlankLineBehaviour how to behave regarding blank lines. blankLineBehaviour)Initialize another export format based on templates stored in dir with layoutFile lfFilename. |
| Modifier and Type | Method and Description |
|---|---|
| public void | export(BibDatabaseContext
the database to export from databaseContext, Path the file to write to file, List<BibEntry> a list containing all entries that should be exported entries)Implements abstract org. Performs the export. |
| public void | export(final BibDatabaseContext databaseContext, final Path file, List<BibEntry> entries, List<Path> fileDirForDatabase, JournalAbbreviationRepository abbreviationRepository)
Overrides org.
|
| public String | |
| public String | |
| private Reader | |
| private void | |
| public void | setCustomExport(boolean
true to indicate a custom export format. custom)Indicate whether this is a custom export. |
| BEGIN_INFIX | back to summary |
|---|---|
| private static final String BEGIN_INFIX | |
| BLANK_LINE_PATTERN | back to summary |
|---|---|
| private static final String BLANK_LINE_PATTERN | |
| blankLineBehaviour | back to summary |
|---|---|
| private BlankLineBehaviour blankLineBehaviour | |
| customExport | back to summary |
|---|---|
| private boolean customExport | |
| directory | back to summary |
|---|---|
| private final String directory | |
| END_INFIX | back to summary |
|---|---|
| private static final String END_INFIX | |
| FORMATTERS_EXTENSION | back to summary |
|---|---|
| private static final String FORMATTERS_EXTENSION | |
| LAYOUT_EXTENSION | back to summary |
|---|---|
| private static final String LAYOUT_EXTENSION | |
| LAYOUT_PREFIX | back to summary |
|---|---|
| private static final String LAYOUT_PREFIX | |
| layoutPreferences | back to summary |
|---|---|
| private final LayoutFormatterPreferences layoutPreferences | |
| lfFileName | back to summary |
|---|---|
| private final String lfFileName | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| saveOrder | back to summary |
|---|---|
| private final SelfContainedSaveOrder saveOrder | |
| TemplateExporter | back to summary |
|---|---|
| public TemplateExporter(String displayName, String consoleName, String lfFileName, String directory, FileType extension) Initialize another export format based on templates stored in dir with layoutFile lfFilename. | |
| TemplateExporter | back to summary |
|---|---|
| public TemplateExporter(String name, String lfFileName, String extension, LayoutFormatterPreferences layoutPreferences, SelfContainedSaveOrder saveOrder) Initialize another export format based on templates stored in dir with layoutFile lfFilename. | |
| TemplateExporter | back to summary |
|---|---|
| public TemplateExporter(String displayName, String consoleName, String lfFileName, String directory, FileType extension, LayoutFormatterPreferences layoutPreferences, SelfContainedSaveOrder saveOrder) Initialize another export format based on templates stored in dir with layoutFile lfFilename. | |
| TemplateExporter | back to summary |
|---|---|
| public TemplateExporter(String displayName, String consoleName, String lfFileName, String directory, FileType extension, LayoutFormatterPreferences layoutPreferences, SelfContainedSaveOrder saveOrder, BlankLineBehaviour blankLineBehaviour) Initialize another export format based on templates stored in dir with layoutFile lfFilename.
| |
| export | back to summary |
|---|---|
| public void export(BibDatabaseContext databaseContext, Path file, List<BibEntry> entries) throws Exception Implements abstract org. Doc from org. Performs the export.
| |
| export | back to summary |
|---|---|
| public void export(final BibDatabaseContext databaseContext, final Path file, List<BibEntry> entries, List<Path> fileDirForDatabase, JournalAbbreviationRepository abbreviationRepository) throws Exception Overrides org.
| |
| getLayoutFileName | back to summary |
|---|---|
| public String getLayoutFileName() | |
| getLayoutFileNameWithExtension | back to summary |
|---|---|
| public String getLayoutFileNameWithExtension() | |
| getReader | back to summary |
|---|---|
| private Reader getReader(String filename) throws IOException This method should return a reader from which the given layout file can be read. Subclasses of TemplateExporter are free to override and provide their own implementation.
| |
| readFormatterFile | back to summary |
|---|---|
| private void readFormatterFile() See if there is a name formatter file bundled with this export format. If so, read all the name formatters so they can be used by the filter layouts. | |
| setCustomExport | back to summary |
|---|---|
| public void setCustomExport(boolean custom) Indicate whether this is a custom export. A custom export looks for its layout files using a normal file path, while a built-in export looks in the classpath.
| |