Package cdc.impex.exports
Interface Exporter
- All Known Implementing Classes:
VerboseExporter
public interface Exporter
Interface implemented by classes that can export data to a file or stream.
- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptionvoidexportData(File file, List<SheetTemplateInstance> templateInstances, WorkbookExporter workbookExporter, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller) Export data to a file.static voidexportData(File file, List<String> templateNames, ImpExCatalog catalog, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) Exports data to a file using anImpExCatalog.static voidexportData(File file, List<String> templateNames, ImpExCatalog catalog, Function<SheetTemplate, SheetTemplateInstance> instancier, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) Exports data to a file using anImpExCatalog.voidexportData(OutputStream out, String systemId, ImpExFormat format, List<SheetTemplateInstance> templateInstances, WorkbookExporter workbookExporter, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller) Export data to an output stream using a format.static voidexportData(OutputStream out, String systemId, ImpExFormat format, List<String> templateNames, ImpExCatalog catalog, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) Exports data to a stream using anImpExCatalog.static voidexportData(OutputStream out, String systemId, ImpExFormat format, List<String> templateNames, ImpExCatalog catalog, Function<SheetTemplate, SheetTemplateInstance> instancier, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) Exports data to a stream using anImpExCatalog.
-
Method Details
-
exportData
void exportData(File file, List<SheetTemplateInstance> templateInstances, WorkbookExporter workbookExporter, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller) throws IOException Export data to a file.- Parameters:
file- The file to generate.templateInstances- The list oftemplate instancesfor which sheets must be generated.workbookExporter- The workbook exporter to be used to extract data to export.issuesHandler- The issues handler.controller- The controller.- Throws:
IOException- When an IO error occurs.IllegalArgumentException- When any input parameter isnull.
-
exportData
void exportData(OutputStream out, String systemId, ImpExFormat format, List<SheetTemplateInstance> templateInstances, WorkbookExporter workbookExporter, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller) throws IOException Export data to an output stream using a format.- Parameters:
out- The output stream.systemId- The system id.format- The format.templateInstances- The list oftemplate instancesfor which sheets must be generated.workbookExporter- The workbook exporter to be used to extract data to export.issuesHandler- The issues handler.controller- The controller.- Throws:
IOException- When an IO error occurs.IllegalArgumentException- When any input parameter (exceptsystemId) isnull.
-
exportData
static void exportData(File file, List<String> templateNames, ImpExCatalog catalog, Function<SheetTemplate, SheetTemplateInstance> instancier, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) throws IOExceptionExports data to a file using anImpExCatalog.- Parameters:
file- The file to generate.templateNames- The list of template names.catalog- The catalog.instancier- The function that converts eachtemplateto atemplate instance.issuesHandler- The issues handler.controller- The controller.features- The features.- Throws:
IOException- When an IO error occurs.
-
exportData
static void exportData(File file, List<String> templateNames, ImpExCatalog catalog, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) throws IOException Exports data to a file using anImpExCatalog.WARNING: this must be used when all template headers contain only names.
- Parameters:
file- The file to generate.templateNames- The list of template names.catalog- The catalog.issuesHandler- The issues handler.controller- The controller.features- The features.- Throws:
IOException- When an IO error occurs.
-
exportData
static void exportData(OutputStream out, String systemId, ImpExFormat format, List<String> templateNames, ImpExCatalog catalog, Function<SheetTemplate, SheetTemplateInstance> instancier, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) throws IOExceptionExports data to a stream using anImpExCatalog.- Parameters:
out- The output stream.systemId- The system id.format- The format.templateNames- The list of template names.catalog- The catalog.instancier- The function that converts eachtemplateto atemplate instance.issuesHandler- The issues handler.controller- The controller.features- The features.- Throws:
IOException- When an IO error occurs.
-
exportData
static void exportData(OutputStream out, String systemId, ImpExFormat format, List<String> templateNames, ImpExCatalog catalog, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) throws IOException Exports data to a stream using anImpExCatalog.WARNING: this must be used when all template headers contain only names.
- Parameters:
out- The output stream.systemId- The system id.format- The format.templateNames- The list of template names.catalog- The catalog.issuesHandler- The issues handler.controller- The controller.features- The features.- Throws:
IOException- When an IO error occurs.
-