Browse Source

update test document

1
developing
jipengfei-jpf 6 years ago committed by GitHub
parent
commit
3498be8846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java

3
src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java

@ -14,9 +14,8 @@ public class ExcelListener extends AnalysisEventListener {
@Override @Override
public void invoke(Object object, AnalysisContext context) { public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet()); System.out.println(context.getCurrentSheet());
if(data.size()<=100){
data.add(object); data.add(object);
}else { if(data.size()>=100){
doSomething(); doSomething();
data = new ArrayList<Object>(); data = new ArrayList<Object>();
} }

Loading…
Cancel
Save