Class Reporter.Output
java.lang.Object
org.apache.rat.Reporter.Output
- Enclosing class:
Reporter
The output from a report run.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Reporter.Output.Builderbuilder()voidformat(org.apache.commons.io.function.IOSupplier<InputStream> stylesheet, org.apache.commons.io.function.IOSupplier<OutputStream> output) Formats the report to the specified output using the stylesheet.voidformat(ReportConfiguration config) Formats the report to the output and using the stylesheet found in the report configuration.Gets the document that was generated during execution.Get the claim statistics from the run.voidlistLicenses(PrintWriter printWriter, LicenseSetFactory.LicenseFilter filter) Lists the licenses on the print writer.voidLists the licenses on the output specified in the configuration.voidwriteSummary(Appendable appendable) Writes a text summary of issues with the run.
-
Method Details
-
builder
-
getDocument
Gets the document that was generated during execution.- Returns:
- the document that was generated during execution.
-
getStatistic
Get the claim statistics from the run.- Returns:
- the claim statistics.
-
getConfiguration
-
format
Formats the report to the output and using the stylesheet found in the report configuration.- Parameters:
config- the RAT report configuration.- Throws:
RatException- on error.
-
format
public void format(org.apache.commons.io.function.IOSupplier<InputStream> stylesheet, org.apache.commons.io.function.IOSupplier<OutputStream> output) throws RatException Formats the report to the specified output using the stylesheet. It is safe to call this method more than once in order to generate multiple reports from the same run.- Parameters:
stylesheet- the style sheet to use for XSLT formatting.output- the output stream to write to.- Throws:
RatException- on error.
-
listLicenses
Lists the licenses on the print writer.- Parameters:
printWriter- the print writer to write to.filter- the license filter that specifies which licenses to output.
-
listLicenses
Lists the licenses on the output specified in the configuration.- Parameters:
filter- the license filter that specifies which licenses to output.- Throws:
IOException- if PrintWriter can not be retrieved from configuration.
-
writeSummary
Writes a text summary of issues with the run.- Parameters:
appendable- the appendable to write to.- Throws:
IOException- on error.
-