Class DataTableExcelXStreamExporter
- java.lang.Object
-
- org.primefaces.component.datatable.export.DataTableExporter
-
- org.primefaces.component.datatable.export.DataTableExcelExporter
-
- org.primefaces.component.datatable.export.DataTableExcelXExporter
-
- org.primefaces.component.datatable.export.DataTableExcelXStreamExporter
-
public class DataTableExcelXStreamExporter extends DataTableExcelXExporter
Different implementation of ExcelXExporter using the POI streaming API: SXSSF (package: org.apache.poi.xssf.streaming) is an API-compatible streaming extension of XSSF to be used when very large spreadsheets have to be produced, and heap space is limited. SXSSF achieves its low memory footprint by limiting access to the rows that are within a sliding window.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.datatable.export.DataTableExporter
DataTableExporter.ColumnType
-
-
Field Summary
-
Fields inherited from class org.primefaces.component.datatable.export.DataTableExcelExporter
DEFAULT_FONT, wb
-
-
Constructor Summary
Constructors Constructor Description DataTableExcelXStreamExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.poi.ss.usermodel.Sheet
createSheet(org.apache.poi.ss.usermodel.Workbook wb, String sheetName, ExcelOptions options)
protected org.apache.poi.ss.usermodel.Workbook
createWorkBook()
protected void
postExport(javax.faces.context.FacesContext context, ExportConfiguration exportConfiguration)
-
Methods inherited from class org.primefaces.component.datatable.export.DataTableExcelXExporter
applyCellOptions, applyFacetOptions, createRichTextString, getContentType, getFileExtension
-
Methods inherited from class org.primefaces.component.datatable.export.DataTableExcelExporter
addColumnFacets, addColumnGroup, addColumnValue, addColumnValue, addColumnValue, addColumnValue, addTableFacets, applyColumnAlignments, applyOptions, calculateColumnOffset, doExport, exportCells, exportTable, getFont, getSheetName, getWorkBook, preExport, updateCell
-
Methods inherited from class org.primefaces.component.datatable.export.DataTableExporter
export, exportAll, exportColumnByFunction, exportPageOnly, exportRow, exportRow, exportSelectionOnly, exportValue, getColumnsToExport, getOutputStream, hasColumnFooter, postRowExport, preRowExport
-
-
-
-
Method Detail
-
createWorkBook
protected org.apache.poi.ss.usermodel.Workbook createWorkBook()
- Overrides:
createWorkBook
in classDataTableExcelXExporter
-
postExport
protected void postExport(javax.faces.context.FacesContext context, ExportConfiguration exportConfiguration) throws IOException
- Overrides:
postExport
in classDataTableExcelExporter
- Throws:
IOException
-
createSheet
protected org.apache.poi.ss.usermodel.Sheet createSheet(org.apache.poi.ss.usermodel.Workbook wb, String sheetName, ExcelOptions options)
- Overrides:
createSheet
in classDataTableExcelExporter
-
-