Interface EntityExportWriter
- All Known Implementing Classes:
CsvEntityExportWriter,POISSExporter,XSSFExporter
public interface EntityExportWriter
Implement this to convert data consumed via
ExportDataConsumer into a specific output format.
There is a new instance of the implementation created for each export via an EntityExportWriterFactory.
Therefore, implementations of this interface don't have to be stateless.-
Method Summary
Modifier and TypeMethodDescriptionvoidend()voidstart(List<ExportColumn> columns, OutputStream outputStream, ExportActionConfig config) voidwriteRows(List<Object[]> rows, OutputStream outputStream, ExportActionConfig config)
-
Method Details
-
start
void start(List<ExportColumn> columns, OutputStream outputStream, ExportActionConfig config) throws IOException - Throws:
IOException
-
writeRows
void writeRows(List<Object[]> rows, OutputStream outputStream, ExportActionConfig config) throws IOException - Throws:
IOException
-
end
- Throws:
IOException
-