Currently, BibtexDatabaseWriter is the only subclass of this class (and that class writes a .bib file)
The opposite class is org.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected final BibWriter | |
| protected final BibEntryTypesManager | |
| protected final FieldPreferences | |
| protected final CitationKeyPatternPreferences | |
| private static final Pattern | |
| protected final List | |
| protected final SelfContainedSaveConfiguration |
| Access | Constructor and Description |
|---|---|
| public | BibDatabaseWriter(BibWriter bibWriter, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences keyPatternPreferences, BibEntryTypesManager entryTypesManager)
|
| Modifier and Type | Method and Description |
|---|---|
| private static List | |
| public static List | |
| protected List | generateCitationKeys(BibDatabaseContext databaseContext, List<BibEntry> entries)
Generate keys for all entries that are lacking keys. |
| public List | |
| private static List | |
| public static List | getSortedEntries(List<BibEntry> entriesToSort, SelfContainedSaveOrder saveOrder)
We have begun to use getSortedEntries() for both database save operations and non-database save operations. |
| public void | |
| public void | savePartOfDatabase(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 abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected void | |
| protected abstract void | |
| protected void | writeMetaData(MetaData metaData, GlobalCitationKeyPatterns globalCiteKeyPattern)
Writes all data to the specified writer, using each object's toString() method. |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected void | |
| protected abstract 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 | |
| entryTypesManager | back to summary |
|---|---|
| protected final BibEntryTypesManager entryTypesManager | |
| fieldPreferences | back to summary |
|---|---|
| protected final FieldPreferences fieldPreferences | |
| keyPatternPreferences | back to summary |
|---|---|
| protected final CitationKeyPatternPreferences keyPatternPreferences | |
| 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 | |
| BibDatabaseWriter | back to summary |
|---|---|
| public BibDatabaseWriter(BibWriter bibWriter, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences keyPatternPreferences, BibEntryTypesManager entryTypesManager) | |
| 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. | |
| saveDatabase | back to summary |
|---|---|
| public void saveDatabase(BibDatabaseContext bibDatabaseContext) throws IOException Saves the complete database. | |
| savePartOfDatabase | back to summary |
|---|---|
| public void savePartOfDatabase(BibDatabaseContext bibDatabaseContext, List<BibEntry> entries) throws IOException Saves the database, including only the specified entries. | |
| writeDatabaseID | back to summary |
|---|---|
| protected abstract void writeDatabaseID(String sharedDatabaseID) throws IOException | |
| writeEntry | back to summary |
|---|---|
| protected abstract void writeEntry(BibEntry entry, BibDatabaseMode mode) throws IOException | |
| writeEntryTypeDefinition | back to summary |
|---|---|
| protected abstract void writeEntryTypeDefinition(BibEntryType customType) throws IOException | |
| writeEntryTypeDefinitions | back to summary |
|---|---|
| protected void writeEntryTypeDefinitions(SortedSet<BibEntryType> types) throws IOException | |
| writeEpilogue | back to summary |
|---|---|
| protected abstract void writeEpilogue(String epilogue) throws IOException | |
| writeMetaData | back to summary |
|---|---|
| protected void writeMetaData(MetaData metaData, GlobalCitationKeyPatterns globalCiteKeyPattern) throws IOException Writes all data to the specified writer, using each object's toString() method. | |
| writeMetaDataItem | back to summary |
|---|---|
| protected abstract void writeMetaDataItem(Map. | |
| writePreamble | back to summary |
|---|---|
| protected abstract void writePreamble(String preamble) throws IOException | |
| writeProlog | back to summary |
|---|---|
| protected abstract 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 abstract 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. | |