Verified Owner
Top Description Constructors Methods
org.jabref.logic.journals

public final Class AbbreviationWriter

extends Object
Class Inheritance
Imports
java.io.IOException, .OutputStreamWriter, java.nio.charset.StandardCharsets, java.nio.file.Files, .Path, java.util.List, org.apache.commons.csv.CSVPrinter

This class provides handy static methods to save abbreviations to the file system.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
writeOrCreate(Path
to a file (doesn't have to exist just yet)
path
,
List<Abbreviation>
as a list specifying which entries should be written
abbreviations
)

This method will write the list of abbreviations to a file on the file system specified by the given path.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbbreviationWriterback to summary
private AbbreviationWriter()

Method Detail

writeOrCreateback to summary
public static void writeOrCreate(Path path, List<Abbreviation> abbreviations) throws IOException

This method will write the list of abbreviations to a file on the file system specified by the given path. If the file already exists its content will be overridden, otherwise a new file will be created.

Parameters
path:Path

to a file (doesn't have to exist just yet)

abbreviations:List<Abbreviation>

as a list specifying which entries should be written