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

public Class BibliographyConsistencyCheckResultTxtWriter

extends BibliographyConsistencyCheckResultWriter
Class Inheritance
Imports
java.io.IOException, .Writer, java.util.ArrayList, .List, .Set, .StringJoiner, java.util.stream.Collectors, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabaseMode, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.model.entry.field.Field

Outputs the findings as plain text.

The symbols from BibliographyConsistencyCheckResultWriter are used.

Field Summary

Modifier and TypeField and Description
private List<Integer>
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.

private Integer
private Integer
private void
private void
outputRow(List<String> theRecord)

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

Field Detail

columnWidthsback to summary
private List<Integer> columnWidths

Constructor Detail

BibliographyConsistencyCheckResultTxtWriterback to summary
public BibliographyConsistencyCheckResultTxtWriter(BibliographyConsistencyCheck.Result result, Writer writer)
BibliographyConsistencyCheckResultTxtWriterback to summary
public BibliographyConsistencyCheckResultTxtWriter(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
getColumnWidthOfCitationKeysback to summary
private Integer getColumnWidthOfCitationKeys(Integer max)
getColumnWidthOfEntryTypesback to summary
private Integer getColumnWidthOfEntryTypes()
initializeColumnWidthsback to summary
private void initializeColumnWidths()
outputRowback to summary
private void outputRow(List<String> theRecord) throws IOException
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.