类 XlsSaxAnalyser

java.lang.Object
com.sh.wf.excel.analysis.v03.XlsSaxAnalyser
所有已实现的接口:
ExcelReadExecutor, org.apache.poi.hssf.eventusermodel.HSSFListener

public class XlsSaxAnalyser extends Object implements org.apache.poi.hssf.eventusermodel.HSSFListener, ExcelReadExecutor
/** * A text extractor for Excel files. *

* 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 XLS2CSVmra
  • 构造器详细资料

    • XlsSaxAnalyser

      public XlsSaxAnalyser(AnalysisContext context, org.apache.poi.poifs.filesystem.POIFSFileSystem poifsFileSystem)
  • 方法详细资料

    • sheetList

      public List<ReadSheet> sheetList()
      从接口复制的说明: ExcelReadExecutor
      Returns the actual sheet in excel
      指定者:
      sheetList 在接口中 ExcelReadExecutor
      返回:
      Actual sheet in excel
    • execute

      public void execute(List<ReadSheet> readSheetList, Boolean readAll)
      从接口复制的说明: ExcelReadExecutor
      Read the sheet.
      指定者:
      execute 在接口中 ExcelReadExecutor
      参数:
      readSheetList - Which sheets you need to read.
      readAll - The readSheetList parameter is ignored, and all sheets are read.
    • processRecord

      public void processRecord(org.apache.poi.hssf.record.Record record)
      指定者:
      processRecord 在接口中 org.apache.poi.hssf.eventusermodel.HSSFListener