public class JSONReport extends Report
configurations, parameters, writer
Constructor and Description |
---|
JSONReport() |
Modifier and Type | Method and Description |
---|---|
void |
printFooter()
Prints out the footer or the report and calls the customized footer
section.
|
protected void |
printFooter(PrintWriter writer)
Allows customization of the footer section of the report
|
void |
printHeader()
This method will display the default header for the Vtool command line
library reports.
|
protected void |
printHeader(PrintWriter writer,
String title)
Allows a Report to customize the header portion of the Report if necessary.
|
protected void |
printRecordMessages(PrintWriter writer,
Status status,
URI sourceUri,
List<LabelException> problems)
Allows a report to customize how it handles reporting on a particular
label.
|
protected void |
printRecordSkip(PrintWriter writer,
URI sourceUri,
Exception exception) |
void |
setOutput(File file)
Handles writing a Report to a
File . |
void |
setOutput(OutputStream os)
Handle writing a Report to an
OutputStream . |
void |
setOutput(Writer writer)
Handles writing a Report to the writer interface.
|
addConfiguration, addParameter, getLevel, getNumFailed, getNumPassed, getNumSkipped, getTotalErrors, getTotalInfos, getTotalWarnings, getType, hasErrors, hasWarnings, printHeader, record, record, recordSkip, setLevel
public void setOutput(Writer writer)
StringWriter
.public void setOutput(OutputStream os)
OutputStream
. This is useful
to get the report to print to something such as System.outpublic void setOutput(File file) throws IOException
File
.setOutput
in class Report
file
- which the report will output toIOException
- if there is an issue in writing the report to the filepublic void printHeader()
Report
printHeader
in class Report
protected void printHeader(PrintWriter writer, String title)
Report
printHeader
in class Report
writer
- passed down to write header contents toprotected void printRecordMessages(PrintWriter writer, Status status, URI sourceUri, List<LabelException> problems)
Report
printRecordMessages
in class Report
writer
- passed on to write customized messages tosourceUri
- reference to the file that is being reported onproblems
- which to report on for this sourceprotected void printRecordSkip(PrintWriter writer, URI sourceUri, Exception exception)
printRecordSkip
in class Report
protected void printFooter(PrintWriter writer)
Report
printFooter
in class Report
writer
- passed on to writer customized footer contentspublic void printFooter()
Report
printFooter
in class Report
Copyright © 2010–2018 Planetary Data System. All rights reserved.