Top Description Fields Constructors Methods
org.jabref.logic.quality.consistency

public Class BibliographyConsistencyCheckResultCsvWriter

extends BibliographyConsistencyCheckResultWriter
Class Inheritance
Imports
java.io.IOException, .Writer, java.util.List, .Set, org.jabref.model.database.BibDatabaseMode, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.model.entry.field.Field, org.apache.commons.csv.CSVFormat, org.apache.commons.csv.CSVPrinter

Outputs the findings as CSV.

The symbols from BibliographyConsistencyCheckResultWriter are used.

Field Summary

Modifier and TypeField and Description
private org.apache.commons.csv.CSVPrinter
Inherited from org.jabref.logic.quality.consistency.BibliographyConsistencyCheckResultWriter:
bibDatabaseModecolumnCountcolumnNamesentryTypesManagerOPTIONAL_FIELD_AT_ENTRY_TYPE_CELL_ENTRYREQUIRED_FIELD_AT_ENTRY_TYPE_CELL_ENTRYresultUNKNOWN_FIELD_AT_ENTRY_TYPE_CELL_ENTRYUNSET_FIELD_AT_ENTRY_TYPE_CELL_ENTRYwriter

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

protected void
public void
Inherited from org.jabref.logic.quality.consistency.BibliographyConsistencyCheckResultWriter:
getFindingsAsListwriteMapEntry

Field Detail

csvPrinterback to summary
private org.apache.commons.csv.CSVPrinter csvPrinter

Constructor Detail

BibliographyConsistencyCheckResultCsvWriterback to summary
public BibliographyConsistencyCheckResultCsvWriter(BibliographyConsistencyCheck.Result result, Writer writer)
BibliographyConsistencyCheckResultCsvWriterback to summary
public BibliographyConsistencyCheckResultCsvWriter(BibliographyConsistencyCheck.Result result, Writer writer, BibEntryTypesManager entryTypesManager, BibDatabaseMode bibDatabaseMode)

Method Detail

closeback to summary
public void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
writeBibEntryback to summary
protected void writeBibEntry(BibEntry bibEntry, String entryType, Set<Field> requiredFields, Set<Field> optionalFields) throws IOException

Implements abstract org.jabref.logic.quality.consistency.BibliographyConsistencyCheckResultWriter.writeBibEntry.

Annotations
@Override
writeFindingsback to summary
public void writeFindings() throws IOException

Overrides org.jabref.logic.quality.consistency.BibliographyConsistencyCheckResultWriter.writeFindings.

Annotations
@Override