Interface IExporter
- All Known Subinterfaces:
IExporterFile
- All Known Implementing Classes:
ExporterCSV,ExporterExcel,ExporterJSON,ExporterXML
public interface IExporter
Generic interface for exporting records to an OutputStream.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.state.ESuccessexportRecords(IExportRecordProvider aProvider, OutputStream aOS) Export all provided records to an output stream.
-
Method Details
-
exportRecords
@Nonnull com.helger.commons.state.ESuccess exportRecords(@Nonnull IExportRecordProvider aProvider, @Nonnull @WillClose OutputStream aOS) Export all provided records to an output stream.- Parameters:
aProvider- The provider for all records. May not benull.aOS- The output stream to write to. Will be closed automatically in any case. May not benull.- Returns:
ESuccess.SUCCESSif at lease one record was provided and saving was successful.
-