Package cdc.impex.exports
Interface Exporter
-
- All Known Implementing Classes:
VerboseExporter
public interface ExporterInterface implemented by classes that can export data to a file or stream.- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexportData(File file, List<SheetTemplate> templates, 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.voidexportData(OutputStream out, String systemId, ImpExFormat format, List<SheetTemplate> templates, 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.
-
-
-
Method Detail
-
exportData
void exportData(File file, List<SheetTemplate> templates, 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.templates- The list of templates for 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<SheetTemplate> templates, 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.templates- The list of templates for 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, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) throws IOException
Exports data to a file using anImpExCatalog.- 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, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler, cdc.util.events.ProgressController controller, ImpExFactoryFeatures features) throws IOException
Exports 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.issuesHandler- The issues handler.controller- The controller.features- The features.- Throws:
IOException- When an IO error occurs.
-
-