| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private final BlankLineBehaviour | |
| private boolean | |
| private final String | |
| private static final String | |
| private static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| private final LayoutFormatterPreferences | |
| private final String | |
| private static final Logger | |
| private final SelfContainedSaveOrder |
| Access | Constructor and Description |
|---|---|
| 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 (a blank string can be passed). 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 (a blank string can be passed). directory, FileType Should contain the . (for instance .txt). extension, LayoutFormatterPreferences Preferences for layout layoutPreferences, @Nullable 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 | |
| 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 final 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 |
|---|---|
| pack-priv static final String LAYOUT_EXTENSION | |
| LAYOUT_PREFIX | back to summary |
|---|---|
| pack-priv 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 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, @Nullable 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 IOException
| |
| export | back to summary |
|---|---|
| public void export(final BibDatabaseContext databaseContext, final Path file, List<BibEntry> entries, List<Path> fileDirForDatabase, JournalAbbreviationRepository abbreviationRepository) throws IOException 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.
| |