public class XlsSaxAnalyser extends Object implements org.apache.poi.hssf.eventusermodel.HSSFListener, ExcelReadExecutor
Returns the textual content of the file, suitable for indexing by something like Lucene, but not really intended for display to the user.
To turn an excel file into a CSV or similar, then see the XLS2CSVmra example
| Constructor and Description |
|---|
XlsSaxAnalyser(XlsReadContext xlsReadContext)
Constructor to initialize the XlsSaxAnalyser with the given context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the parsing process for the Excel file.
|
void |
processRecord(org.apache.poi.hssf.record.Record record)
Processes a single Excel record.
|
List<ReadSheet> |
sheetList()
Retrieves the list of sheets in the workbook.
|
public XlsSaxAnalyser(XlsReadContext xlsReadContext)
xlsReadContext - The context containing necessary information for reading the Excel file.public List<ReadSheet> sheetList()
If the sheet data list is not already loaded, it triggers the execution of a listener to load the data.
sheetList in interface ExcelReadExecutorpublic void execute()
This method sets up the necessary listeners and processes the workbook events using HSSFEventFactory.
execute in interface ExcelReadExecutorpublic void processRecord(org.apache.poi.hssf.record.Record record)
This method retrieves the appropriate handler for the given record and processes it. If the record is ignorable or unsupported, it skips processing.
processRecord in interface org.apache.poi.hssf.eventusermodel.HSSFListenerrecord - The Excel record to be processed.Copyright © 2024–2025 fast-excel. All rights reserved.