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 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 is null.
      • 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 (except systemId) is null.
      • 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 an ImpExCatalog.
        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 an ImpExCatalog.
        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.