Class EasyExcelReadListener<T,U>

java.lang.Object
ai.chat2db.excel.event.AnalysisEventListener<T>
cn.sinozg.applet.common.excel.EasyExcelReadListener<T,U>
All Implemented Interfaces:
ai.chat2db.excel.event.Listener, ai.chat2db.excel.read.listener.ReadListener<T>

public class EasyExcelReadListener<T,U> extends ai.chat2db.excel.event.AnalysisEventListener<T>
读取excel 监听

流式处理,减少内存占用

  • Field Details

    • function

      private final Function<T,U> function
      数据转化
    • result

      private final ImportExcelResult<U> result
      处理结果
    • log

      private final org.slf4j.Logger log
  • Constructor Details

  • Method Details

    • onException

      public void onException(Exception exception, ai.chat2db.excel.context.AnalysisContext context) throws Exception
      Throws:
      Exception
    • invoke

      public void invoke(T data, ai.chat2db.excel.context.AnalysisContext context)
    • doAfterAllAnalysed

      public void doAfterAllAnalysed(ai.chat2db.excel.context.AnalysisContext context)