com.alibaba.excel.event
类 AnalysisEventListener<T>
- java.lang.Object
-
- com.alibaba.excel.event.AnalysisEventListener<T>
-
- 所有已实现的接口:
- Listener, ReadListener<T>
- 直接已知子类:
- SyncReadListener
public abstract class AnalysisEventListener<T> extends Object implements ReadListener<T>
Receives the return of each piece of data parsed- 作者:
- jipengfei
-
构造器概要
构造器 构造器和说明 AnalysisEventListener()
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 boolean
hasNext(AnalysisContext context)
Verify that there is another piece of data.You can stop the read by returning falsevoid
invokeHead(Map<Integer,CellData> headMap, AnalysisContext context)
When analysis one head row trigger invoke function.void
invokeHeadMap(Map<Integer,String> headMap, AnalysisContext context)
Returns the header as a map.Override the current method to receive header data.void
onException(Exception exception, AnalysisContext context)
All listeners receive this method when any one Listener does an error report.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.alibaba.excel.read.listener.ReadListener
doAfterAllAnalysed, invoke
-
方法详细资料
invokeHead
public void invokeHead(Map<Integer,CellData> headMap, AnalysisContext context)
从接口复制的说明:ReadListener
When analysis one head row trigger invoke function.- 指定者:
-
invokeHead
在接口中ReadListener<T>
invokeHeadMap
public void invokeHeadMap(Map<Integer,String> headMap, AnalysisContext context)
Returns the header as a map.Override the current method to receive header data.- 参数:
-
headMap
- -
context
-
onException
public void onException(Exception exception, AnalysisContext context) throws Exception
All listeners receive this method when any one Listener does an error report. If an exception is thrown here, the entire read will terminate.- 指定者:
-
onException
在接口中ReadListener<T>
- 参数:
-
exception
- -
context
- - 抛出:
-
Exception
hasNext
public boolean hasNext(AnalysisContext context)
从接口复制的说明:ReadListener
Verify that there is another piece of data.You can stop the read by returning false- 指定者:
-
hasNext
在接口中ReadListener<T>
- 返回:
Copyright © 2018–2019 Alibaba Group. All rights reserved.