Search in sources :

Example 1 with XlsxRowHandler

use of com.alibaba.excel.analysis.v07.handlers.sax.XlsxRowHandler in project easyexcel by alibaba.

the class XlsxSaxAnalyser method execute.

@Override
public void execute() {
    for (ReadSheet readSheet : sheetList) {
        readSheet = SheetUtils.match(readSheet, xlsxReadContext);
        if (readSheet != null) {
            xlsxReadContext.currentSheet(readSheet);
            parseXmlSource(sheetMap.get(readSheet.getSheetNo()), new XlsxRowHandler(xlsxReadContext));
            // Read comments
            readComments(readSheet);
            // The last sheet is read
            xlsxReadContext.analysisEventProcessor().endSheet(xlsxReadContext);
        }
    }
}
Also used : ReadSheet(com.alibaba.excel.read.metadata.ReadSheet) XlsxRowHandler(com.alibaba.excel.analysis.v07.handlers.sax.XlsxRowHandler)

Aggregations

XlsxRowHandler (com.alibaba.excel.analysis.v07.handlers.sax.XlsxRowHandler)1 ReadSheet (com.alibaba.excel.read.metadata.ReadSheet)1