public class Reporter extends Object
Constructor and Description |
---|
Reporter(ReportConfiguration configuration)
Create the reporter.
|
Modifier and Type | Method and Description |
---|---|
ClaimStatistic |
getClaimsStatistic()
Get the claim statistics from the run.
|
static void |
listLicenseFamilies(ReportConfiguration configuration,
LicenseSetFactory.LicenseFilter filter)
lists the license families information on the configured output stream.
|
static void |
listLicenses(ReportConfiguration configuration,
LicenseSetFactory.LicenseFilter filter)
lists the licenses on the configured output stream.
|
void |
output()
Outputs the report using the stylesheet and output specified in the configuraiton.
|
void |
output(org.apache.commons.io.function.IOSupplier<InputStream> stylesheet,
org.apache.commons.io.function.IOSupplier<OutputStream> output)
Outputs the report to the specified output useing the optional stylesheet.
|
public Reporter(ReportConfiguration configuration) throws RatException
configuration
- the configuration to use.RatException
- on error.public ClaimStatistic getClaimsStatistic()
public void output() throws RatException
RatException
- on error.public void output(org.apache.commons.io.function.IOSupplier<InputStream> stylesheet, org.apache.commons.io.function.IOSupplier<OutputStream> output) throws RatException
stylesheet
- the style sheet to use for XSLT formatting, may be null for XML output.output
- the output stream to write to.RatException
- one error.public static void listLicenseFamilies(ReportConfiguration configuration, LicenseSetFactory.LicenseFilter filter) throws IOException
configuration
- The configuration for the systemIOException
- if PrintWriter can not be retrieved from configuration.public static void listLicenses(ReportConfiguration configuration, LicenseSetFactory.LicenseFilter filter) throws IOException
configuration
- The configuration for the systemIOException
- if PrintWriter can not be retrieved from configuration.Copyright © 2006–2024 Apache Software Foundation. All rights reserved.