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

public Class XmpExporter

extends Exporter
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.List, org.jabref.logic.util.StandardFileType, org.jabref.logic.xmp.XmpPreferences, .XmpUtilWriter, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.InternalField, org.jspecify.annotations.NonNull

A custom exporter to write bib entries to a .xmp file for further processing in other scenarios and applications. The xmp metadata are written in dublin core format.

Field Summary

Modifier and TypeField and Description
public static final String
private final XmpPreferences

Constructor Summary

AccessConstructor and Description
public
XmpExporter(XmpPreferences xmpPreferences)

Method Summary

Modifier and TypeMethod and Description
public void
export(@NonNull BibDatabaseContext
the database to export from
databaseContext
,
@NonNull Path
the file to write to. If it contains "split", then the output is split into different files
file
,
@NonNull List<BibEntry>
a list containing all entries that should be exported
entries
)

private void
writeBibToXmp(Path file, List<BibEntry> entries)

Inherited from org.jabref.logic.exporter.Exporter:
exportexportexportToAllFilesOfEntryexportToFileByPathgetFileTypegetIdgetNametoString

Field Detail

XMP_SPLIT_DIRECTORY_INDICATORback to summary
public static final String XMP_SPLIT_DIRECTORY_INDICATOR
xmpPreferencesback to summary
private final XmpPreferences xmpPreferences

Constructor Detail

XmpExporterback to summary
public XmpExporter(XmpPreferences xmpPreferences)

Method Detail

exportback to summary
public void export(@NonNull BibDatabaseContext databaseContext, @NonNull Path file, @NonNull List<BibEntry> entries) throws IOException
Parameters
databaseContext:@NonNull BibDatabaseContext

the database to export from

file:@NonNull Path

the file to write to. If it contains "split", then the output is split into different files

entries:@NonNull List<BibEntry>

a list containing all entries that should be exported

Annotations
@Override
writeBibToXmpback to summary
private void writeBibToXmp(Path file, List<BibEntry> entries) throws IOException