Top Description Fields Constructors Methods
org.jabref.logic.exporter

public Class BibtexDatabaseWriter

extends BibDatabaseWriter
Class Inheritance
Imports
java.io.IOException, .Writer, java.nio.charset.Charset, .StandardCharsets, java.util.Map, org.jabref.logic.bibtex.BibEntryWriter, .FieldPreferences, .FieldWriter, .InvalidFieldValueException, org.jabref.logic.citationkeypattern.CitationKeyPatternPreferences, org.jabref.model.database.BibDatabaseContext, .BibDatabaseMode, org.jabref.model.entry.BibEntry, .BibEntryType, .BibEntryTypesManager, .BibtexString, org.jabref.model.entry.field.InternalField, org.jabref.model.metadata.MetaData, org.jabref.model.strings.StringUtil, org.slf4j.Logger, .LoggerFactory

Writes a .bib file following the BibTeX / BibLaTeX format using the provided BibWriter. Reading is done by org.jabref.logic.importer.fileformat.BibtexImporter.

Field Summary

Modifier and TypeField and Description
private static final String
public static final String
private static final Logger
private static final String
private static final String
Inherited from org.jabref.logic.exporter.BibDatabaseWriter:
bibWriterentryTypesManagerfieldPreferenceskeyPatternPreferencessaveActionsFieldChangessaveConfiguration

Constructor Summary

AccessConstructor and Description
public
BibtexDatabaseWriter(BibWriter bibWriter, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, BibEntryTypesManager entryTypesManager)

public
BibtexDatabaseWriter(Writer writer, String newline, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, BibEntryTypesManager entryTypesManager)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
writeString(BibtexString bibtexString, int maxKeyLength)

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeString.

Inherited from org.jabref.logic.exporter.BibDatabaseWriter:
applySaveActionsgenerateCitationKeysgetSaveActionsFieldChangesgetSortedEntriessaveDatabasesavePartOfDatabasewriteEntryTypeDefinitionswriteMetaDatawriteString

Field Detail

COMMENT_PREFIXback to summary
private static final String COMMENT_PREFIX
DATABASE_ID_PREFIXback to summary
public static final String DATABASE_ID_PREFIX
LOGGERback to summary
private static final Logger LOGGER
PREAMBLE_PREFIXback to summary
private static final String PREAMBLE_PREFIX
STRING_PREFIXback to summary
private static final String STRING_PREFIX

Constructor Detail

BibtexDatabaseWriterback to summary
public BibtexDatabaseWriter(BibWriter bibWriter, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, BibEntryTypesManager entryTypesManager)
BibtexDatabaseWriterback to summary
public BibtexDatabaseWriter(Writer writer, String newline, SelfContainedSaveConfiguration saveConfiguration, FieldPreferences fieldPreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, BibEntryTypesManager entryTypesManager)

Method Detail

writeDatabaseIDback to summary
protected void writeDatabaseID(String sharedDatabaseID) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeDatabaseID.

Annotations
@Override
writeEntryback to summary
protected void writeEntry(BibEntry entry, BibDatabaseMode mode) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeEntry.

Annotations
@Override
writeEntryTypeDefinitionback to summary
protected void writeEntryTypeDefinition(BibEntryType customType) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeEntryTypeDefinition.

Annotations
@Override
writeEpilogueback to summary
protected void writeEpilogue(String epilogue) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeEpilogue.

Annotations
@Override
writeMetaDataItemback to summary
protected void writeMetaDataItem(Map.Entry<String, String> metaItem) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeMetaDataItem.

Annotations
@Override
writePreambleback to summary
protected void writePreamble(String preamble) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writePreamble.

Annotations
@Override
writePrologback to summary
protected void writeProlog(BibDatabaseContext bibDatabaseContext, Charset encoding) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeProlog.

Annotations
@Override
writeStringback to summary
protected void writeString(BibtexString bibtexString, int maxKeyLength) throws IOException

Implements abstract org.jabref.logic.exporter.BibDatabaseWriter.writeString.

Annotations
@Override