All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy