BibWriter
The opposite class is org.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected final BibWriter | |
| private static final String | |
| public static final String | |
| protected final BibEntryTypesManager | |
| protected final FieldPreferences | |
| private @Nullable JournalAbbreviationRepository | |
| protected final CitationKeyPatternPreferences | |
| private static final Logger | |
| private Consumer | |
| private static final String | |
| private static final Pattern | |
| protected final List | |
| protected final SelfContainedSaveConfiguration | |
| private static final String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | BibDatabaseWriter(@NonNull BibWriter bibWriter, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences keyPatternPreferences, BibEntryTypesManager entryTypesManager)
|
| public | BibDatabaseWriter(@NonNull Writer
the output to use writer, @NonNull BibDatabaseContext - used to get the newline bibDatabaseContext, @NonNull CliPreferences - used to read all the preferences preferences)Convenience constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private static List | applySaveActions(List<BibEntry> toChange, MetaData metaData, FieldPreferences fieldPreferences, Consumer<Runnable> mutationScheduler)
|
| public static List | |
| protected List | generateCitationKeys(BibDatabaseContext databaseContext, List<BibEntry> entries, Consumer<Runnable> mutationScheduler)
Generate keys for all entries that are lacking keys. |
| public List | |
| private static List | |
| public static List | getSortedEntries(@NonNull List<BibEntry> entriesToSort, @NonNull SelfContainedSaveOrder saveOrder)
We have begun to use getSortedEntries() for both database save operations and non-database save operations. |
| public BibDatabaseWriter | withJournalAbbreviationRepository(@NonNull JournalAbbreviationRepository repository, boolean useFJournalField)
|
| public BibDatabaseWriter | withMutationScheduler(Consumer<Runnable> mutationScheduler)
Routes |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | writeMetaData(@NonNull MetaData metaData, GlobalCitationKeyPatterns globalCiteKeyPattern)
Writes all data to the specified writer, using each object's toString() method. |
| protected void | |
| public void | writePartOfDatabase(BibDatabaseContext bibDatabaseContext, List<BibEntry>
A list of entries to save. The list itself is not modified in this code entries)Saves the database, including only the specified entries. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| private void | writeStrings(BibDatabase
The database whose strings we should write. database)Write all strings in alphabetical order, modified to produce a safe (for BibTeX) order of the strings if they reference each other. |
| bibWriter | back to summary |
|---|---|
| protected final BibWriter bibWriter | |
| COMMENT_PREFIX | back to summary |
|---|---|
| private static final String COMMENT_PREFIX | |
| DATABASE_ID_PREFIX | back to summary |
|---|---|
| public static final String DATABASE_ID_PREFIX | |
| entryTypesManager | back to summary |
|---|---|
| protected final BibEntryTypesManager entryTypesManager | |
| fieldPreferences | back to summary |
|---|---|
| protected final FieldPreferences fieldPreferences | |
| journalAbbreviationRepository | back to summary |
|---|---|
| private @Nullable JournalAbbreviationRepository journalAbbreviationRepository | |
| keyPatternPreferences | back to summary |
|---|---|
| protected final CitationKeyPatternPreferences keyPatternPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| mutationScheduler | back to summary |
|---|---|
| private Consumer<Runnable> mutationScheduler | |
| PREAMBLE_PREFIX | back to summary |
|---|---|
| private static final String PREAMBLE_PREFIX | |
| REFERENCE_PATTERN | back to summary |
|---|---|
| private static final Pattern REFERENCE_PATTERN | |
| saveActionsFieldChanges | back to summary |
|---|---|
| protected final List<FieldChange> saveActionsFieldChanges | |
| saveConfiguration | back to summary |
|---|---|
| protected final SelfContainedSaveConfiguration saveConfiguration | |
| STRING_PREFIX | back to summary |
|---|---|
| private static final String STRING_PREFIX | |
| useFJournalField | back to summary |
|---|---|
| private boolean useFJournalField | |
| BibDatabaseWriter | back to summary |
|---|---|
| public BibDatabaseWriter(@NonNull BibWriter bibWriter, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences keyPatternPreferences, BibEntryTypesManager entryTypesManager) | |
| BibDatabaseWriter | back to summary |
|---|---|
| public BibDatabaseWriter(@NonNull Writer writer, @NonNull BibDatabaseContext bibDatabaseContext, @NonNull CliPreferences preferences) Convenience constructor. One can directly call
| |
| applySaveActions | back to summary |
|---|---|
| private static List | |
| applySaveActions | back to summary |
|---|---|
| public static List | |
| generateCitationKeys | back to summary |
|---|---|
| protected List Generate keys for all entries that are lacking keys. | |
| getSaveActionsFieldChanges | back to summary |
|---|---|
| public List | |
| getSaveComparators | back to summary |
|---|---|
| private static List | |
| getSortedEntries | back to summary |
|---|---|
| public static List We have begun to use getSortedEntries() for both database save operations and non-database save operations. In a non-database save operation (such as the exportDatabase call), we do not wish to use the global preference of saving in standard order. | |
| withJournalAbbreviationRepository | back to summary |
|---|---|
| public BibDatabaseWriter withJournalAbbreviationRepository(@NonNull JournalAbbreviationRepository repository, boolean useFJournalField) | |
| withMutationScheduler | back to summary |
|---|---|
| public BibDatabaseWriter withMutationScheduler(Consumer<Runnable> mutationScheduler) Routes | |
| writeDatabase | back to summary |
|---|---|
| public void writeDatabase(@NonNull BibDatabaseContext bibDatabaseContext) throws IOException Saves the complete database. | |
| writeDatabaseID | back to summary |
|---|---|
| protected void writeDatabaseID(String sharedDatabaseID) throws IOException | |
| writeEntry | back to summary |
|---|---|
| protected void writeEntry(BibEntry entry, BibDatabaseMode mode) throws IOException | |
| writeEntryTypeDefinition | back to summary |
|---|---|
| protected void writeEntryTypeDefinition(BibEntryType customType) throws IOException | |
| writeEntryTypeDefinitions | back to summary |
|---|---|
| protected void writeEntryTypeDefinitions(SortedSet<BibEntryType> types) throws IOException | |
| writeEpilogue | back to summary |
|---|---|
| protected void writeEpilogue(String epilogue) throws IOException | |
| writeMetaData | back to summary |
|---|---|
| protected void writeMetaData(@NonNull MetaData metaData, GlobalCitationKeyPatterns globalCiteKeyPattern) throws IOException Writes all data to the specified writer, using each object's toString() method. | |
| writeMetaDataItem | back to summary |
|---|---|
| protected void writeMetaDataItem(Map. | |
| writePartOfDatabase | back to summary |
|---|---|
| public void writePartOfDatabase(BibDatabaseContext bibDatabaseContext, List<BibEntry> entries) throws IOException Saves the database, including only the specified entries. | |
| writePreamble | back to summary |
|---|---|
| protected void writePreamble(String preamble) throws IOException | |
| writeProlog | back to summary |
|---|---|
| protected void writeProlog(BibDatabaseContext bibDatabaseContext, Charset encoding) throws IOException | |
| writeString | back to summary |
|---|---|
| protected void writeString(BibtexString bibtexString, Map<String, BibtexString> remaining, int maxKeyLength) throws IOException | |
| writeString | back to summary |
|---|---|
| protected void writeString(BibtexString bibtexString, int maxKeyLength) throws IOException | |
| writeStrings | back to summary |
|---|---|
| private void writeStrings(BibDatabase database) throws IOException Write all strings in alphabetical order, modified to produce a safe (for BibTeX) order of the strings if they reference each other.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BibDatabaseWriter. | |
| public static final BibDatabaseWriter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BibDatabaseWriter. | |
| public static BibDatabaseWriter. |
| PLAIN_BIBTEX | back to summary |
|---|---|
| public static final BibDatabaseWriter. | |
| WITH_JABREF_META_DATA | back to summary |
|---|---|
| public static final BibDatabaseWriter. | |
| SaveType | back to summary |
|---|---|
| private SaveType() | |
| valueOf | back to summary |
|---|---|
| public static BibDatabaseWriter. | |
| values | back to summary |
|---|---|
| public static BibDatabaseWriter. | |