Interface LaravelUi5\Sdk\Export\Contracts\ExportWriterInterface

Encodes an {@see ExportableInterface} into a downloadable file response for exactly one {@see \LaravelUi5\Sdk\Export\Enums\ExportFormat}.

One writer per format. The SDK ships the native CSV writer ({@see \LaravelUi5\Sdk\Export\CsvExportWriter}); a host binds an xlsx writer (over openspout) if it wants .xlsx. The writer is the only place a spreadsheet library may appear — the domain contracts stay library-free.

The response streams: the writer wires the Exportable's row generator to the output so memory stays flat regardless of row count, and sets Content-Disposition: attachment; filename=… so the browser saves it.

Methods