Class ReportWriter
- java.lang.Object
-
- org.verapdf.processor.reports.multithread.writer.ReportWriter
-
- Direct Known Subclasses:
AbstractXmlReportWriter,JsonReportWriter,TextReportWriter
public abstract class ReportWriter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintWriteroutputStreamWriter
-
Constructor Summary
Constructors Modifier Constructor Description protectedReportWriter(PrintWriter outputStreamWriter, PrintWriter errorStreamWriter)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcloseOutputStream()protected voiddeleteTemp(ResultStructure result)abstract voidendDocument()protected voidmerge(File report, PrintWriter destination)static ReportWriternewInstance(OutputStream os, FormatOption outputFormat, OutputStream errorStream)abstract voidstartDocument()abstract voidwrite(ResultStructure result)
-
-
-
Field Detail
-
outputStreamWriter
protected PrintWriter outputStreamWriter
-
-
Constructor Detail
-
ReportWriter
protected ReportWriter(PrintWriter outputStreamWriter, PrintWriter errorStreamWriter)
-
-
Method Detail
-
newInstance
public static ReportWriter newInstance(OutputStream os, FormatOption outputFormat, OutputStream errorStream)
-
write
public abstract void write(ResultStructure result)
-
startDocument
public abstract void startDocument()
-
endDocument
public abstract void endDocument()
-
merge
protected void merge(File report, PrintWriter destination)
-
deleteTemp
protected void deleteTemp(ResultStructure result)
-
closeOutputStream
public void closeOutputStream()
-
-