Interface IExporter

All Known Subinterfaces:
ILayerExporter, ITableExporter
All Known Implementing Classes:
CsvExporter, ExcelExporter, HSSFExcelExporter, ImageExporter, PoiExcelExporter

public interface IExporter
Base interface for NatTable exporters to get the OutputStream and the export result.
Since:
1.5
  • Method Details

    • getOutputStream

      OutputStream getOutputStream(org.eclipse.swt.widgets.Shell shell)
      Get the OutputStream to which the export should be written to.
      Parameters:
      shell - The Shell to which the ILayer to export is connected to. Necessary to support user interactions via dialogs on configuring the output location.
      Returns:
      The OutputStream to write the export to.
    • getResult

      Object getResult()
      Returns:
      The result that is produced by this ITableExporter. Usually the file that is created or written by this exporter.