com.xinjump.easyexcel.helper.ExcelReader Maven / Gradle / Ivy
The newest version!
package com.xinjump.easyexcel.helper;
import com.xinjump.easyexcel.event.AnalysisEventAutoListener;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
@SuppressWarnings({"rawtypes"})
public class ExcelReader extends AbstractEasyExcel {
public T read(String type, InputStream is, Integer sheetNo, HttpServletResponse response) {
return read(is, sheetNo, this.getEventListener(type, response));
}
public T read(InputStream is, Integer sheetNo, T listener) {
read(is, listener.getClazz(), listener).sheet(sheetNo).doRead();
return listener;
}
}