Class DataTableExcelXStreamExporter
java.lang.Object
org.primefaces.component.export.TableExporter<DataTable,P,O>
org.primefaces.component.datatable.export.DataTableExporter<org.apache.poi.ss.usermodel.Workbook,ExcelOptions>
org.primefaces.component.datatable.export.DataTableExcelExporter
org.primefaces.component.datatable.export.DataTableExcelXExporter
org.primefaces.component.datatable.export.DataTableExcelXStreamExporter
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.export.TableExporter
TableExporter.ColumnType, TableExporter.FacetType -
Field Summary
Fields inherited from class org.primefaces.component.export.TableExporter
ALL_FACETS, cellJoinComponents, document, exportConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyOptions(org.apache.poi.ss.usermodel.Sheet sheet) protected org.apache.poi.ss.usermodel.WorkbookcreateDocument(javax.faces.context.FacesContext context) protected voidpostExport(javax.faces.context.FacesContext context) Methods inherited from class org.primefaces.component.datatable.export.DataTableExcelXExporter
getContentType, getFileExtensionMethods inherited from class org.primefaces.component.datatable.export.DataTableExcelExporter
autoSizeColumn, calculateColumnOffset, createSheet, exportCellValue, exportColumnFacetValue, exportColumnGroupFacetValue, exportTable, exportTabletFacetValue, getSheetName, preExport, preRowExport, row, sheetMethods inherited from class org.primefaces.component.datatable.export.DataTableExporter
exportAll, exportPageOnly, exportRow, exportSelectionOnlyMethods inherited from class org.primefaces.component.export.TableExporter
addCells, addColumnFacets, addColumnGroupFacets, addTableFacets, export, getColumnExportTag, getColumnFacetValue, getColumnValue, getComponentFacetValue, getComponentValue, getExportableColumns, getOnTableRenderArgs, options, os, postRowExport
-
Constructor Details
-
DataTableExcelXStreamExporter
public DataTableExcelXStreamExporter()
-
-
Method Details
-
createDocument
protected org.apache.poi.ss.usermodel.Workbook createDocument(javax.faces.context.FacesContext context) throws IOException - Overrides:
createDocumentin classDataTableExcelXExporter- Throws:
IOException
-
postExport
- Overrides:
postExportin classDataTableExcelExporter- Throws:
IOException
-
applyOptions
protected void applyOptions(org.apache.poi.ss.usermodel.Sheet sheet) - Overrides:
applyOptionsin classDataTableExcelExporter
-