Interface IExporter
-
- All Known Subinterfaces:
IExporterFile
- All Known Implementing Classes:
ExporterCSV,ExporterExcel,ExporterJSON,ExporterXML
public interface IExporterGeneric interface for exporting records to an OutputStream.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.helger.commons.state.ESuccessexportRecords(IExportRecordProvider aProvider, OutputStream aOS)Export all provided records to an output stream.
-
-
-
Method Detail
-
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.
-
-