public class XlsSaxAnalyser extends BaseSaxAnalyser implements org.apache.poi.hssf.eventusermodel.HSSFListener
* 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 *
* * @see XLS2CSVmraanalysisContext| 构造器和说明 |
|---|
XlsSaxAnalyser(AnalysisContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute()
execute method
|
List<Sheet> |
getSheets()
get all sheet of workbook
|
void |
processRecord(org.apache.poi.hssf.record.Record record) |
analysis, analysis, appendLister, cleanAllListeners, notifyListenerspublic XlsSaxAnalyser(AnalysisContext context) throws IOException
IOExceptionpublic List<Sheet> getSheets()
ExcelAnalysergetSheets 在接口中 ExcelAnalyserpublic void execute()
BaseSaxAnalyserexecute 在类中 BaseSaxAnalyserpublic void processRecord(org.apache.poi.hssf.record.Record record)
processRecord 在接口中 org.apache.poi.hssf.eventusermodel.HSSFListenerCopyright © 2018 Alibaba Group. All rights reserved.