Class ExcelExport

java.lang.Object
io.goobi.viewer.model.export.ExcelExport

public class ExcelExport extends Object
Holds an Apache POI streaming workbook and provides a method to write its content to an output stream.
  • Constructor Details

    • ExcelExport

      public ExcelExport()
  • Method Details

    • writeToResponse

      public boolean writeToResponse(OutputStream os)
      Parameters:
      os - output stream to write the workbook to
      Returns:
      True if successful; false otherwise
    • close

      public void close() throws IOException
      Throws:
      IOException
    • getWorkbook

      public org.apache.poi.xssf.streaming.SXSSFWorkbook getWorkbook()
    • setWorkbook

      public ExcelExport setWorkbook(org.apache.poi.xssf.streaming.SXSSFWorkbook workbook)
      Parameters:
      workbook - the Apache POI streaming workbook to set
      Returns:
      this
    • getFileName

      public String getFileName()
    • setFileName

      public ExcelExport setFileName(String fileName)
      Parameters:
      fileName - the desired file name for the exported Excel file
      Returns:
      this