public abstract class ExporterSupport extends Object implements Exporter
Exporter
implementations.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
ExporterSupport() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Returns
true if this exporter can render to given file. |
protected abstract boolean |
accept(String filename) |
protected abstract void |
export(ComponentReportExport export,
Writer writer) |
void |
export(ComponentReportResult result,
File file)
Export component-report to given file.
|
public boolean accept(File file)
Exporter
true
if this exporter can render to given file.
Exporters user file-extension to determine acceptance.protected abstract boolean accept(String filename)
public void export(ComponentReportResult result, File file) throws IOException
Exporter
export
in interface Exporter
IOException
protected abstract void export(ComponentReportExport export, Writer writer) throws Exception
Exception
Copyright © 2018–2019 Sonatype, Inc.. All rights reserved.