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

matrix.boot.common.enums.ExcelFormatEnum Maven / Gradle / Ivy

There is a newer version: 2.1.11
Show newest version
package matrix.boot.common.enums;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

/**
 * @author wangcheng
 */
public enum ExcelFormatEnum {

    EXCEL2003(HSSFWorkbook.class, ".xls"),
    EXCEL2007(SXSSFWorkbook.class, ".xlsx");

    private Class clazz;

    private String suffix;

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    ExcelFormatEnum(Class clazz, String suffix) {
        this.clazz = clazz;
        this.suffix = suffix;
    }}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy