Package io.goobi.viewer.model.export
Class ExcelExport
java.lang.Object
io.goobi.viewer.model.export.ExcelExport
Holds an Apache POI streaming workbook and provides a method to write its content to an output stream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.poi.xssf.streaming.SXSSFWorkbooksetFileName(String fileName) setWorkbook(org.apache.poi.xssf.streaming.SXSSFWorkbook workbook) boolean
-
Constructor Details
-
ExcelExport
public ExcelExport()
-
-
Method Details
-
writeToResponse
- Parameters:
os- output stream to write the workbook to- Returns:
- True if successful; false otherwise
-
close
- Throws:
IOException
-
getWorkbook
public org.apache.poi.xssf.streaming.SXSSFWorkbook getWorkbook() -
setWorkbook
- Parameters:
workbook- the Apache POI streaming workbook to set- Returns:
- this
-
getFileName
-
setFileName
- Parameters:
fileName- the desired file name for the exported Excel file- Returns:
- this
-