Verified Owner
Top Fields Constructors Methods
org.jabref.logic.integrity

public abstract Class IntegrityCheckResultWriter

extends Object
implements Closeable
Class Inheritance
All Implemented Interfaces
java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
org.jabref.logic.integrity.IntegrityCheckResultCsvWriter, org.jabref.logic.integrity.IntegrityCheckResultErrorFormatWriter, org.jabref.logic.integrity.IntegrityCheckResultGitHubActionsWriter
Imports
java.io.Closeable, .IOException, .Writer, java.util.List

Field Summary

Modifier and TypeField and Description
protected final List<IntegrityMessage>
protected final Writer

Constructor Summary

AccessConstructor and Description
public
IntegrityCheckResultWriter(Writer writer, List<IntegrityMessage> messages)

Writer lifecycle: The caller is responsible for closing the writer at the appropriate time.

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.

public abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

messagesback to summary
protected final List<IntegrityMessage> messages
writerback to summary
protected final Writer writer

Constructor Detail

IntegrityCheckResultWriterback to summary
public IntegrityCheckResultWriter(Writer writer, List<IntegrityMessage> messages)

Writer lifecycle: The caller is responsible for closing the writer at the appropriate time.

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
writeFindingsback to summary
public abstract void writeFindings() throws IOException