Package io.keikai.range
Interface SExporter
- All Known Implementing Classes:
AbstractExporter,PdfExporter,RustHtmlExporter,RustPdfExporter
public interface SExporter
An exporter can export a book model to a output stream or file.
- Since:
- 3.5.0
- Author:
- dennis
-
Method Summary
Modifier and TypeMethodDescriptionvoidExport a bookdefault voidexport(SBook book, File file, ExportOptions options) Export a book to a file applying the givenExportOptions.voidexport(SBook book, OutputStream fos) Export a bookdefault voidexport(SBook book, OutputStream fos, ExportOptions options) Export a book applying the givenExportOptions(KEIKAI-832).
-
Method Details
-
export
Export a book- Parameters:
book- the book to exportfos- the output stream to store data- Throws:
IOException
-
export
Export a book- Parameters:
book- the book to exportfile- the output file to store data- Throws:
IOException
-
export
Export a book applying the givenExportOptions(KEIKAI-832).The default implementation honors only the no-op case: with
nullordefaultoptions it delegates toexport(SBook, OutputStream); any other options throwUnsupportedOperationException. Exporters that support customization (currently XLSX/XLSM) override this method.- Parameters:
book- the book to exportfos- the output stream to store dataoptions- the export customizations;nullmeans defaults- Throws:
IOException- on I/O failure- Since:
- 7.0.0
-
export
Export a book to a file applying the givenExportOptions. Convenience wrapper aroundexport(SBook, OutputStream, ExportOptions).- Parameters:
book- the book to exportfile- the output file to store dataoptions- the export customizations;nullmeans defaults- Throws:
IOException- on I/O failure- Since:
- 7.0.0
-