Enum Class ExcelType
- 所有已实现的接口:
Serializable,Comparable<ExcelType>,java.lang.constant.Constable
Excel 文件格式类型枚举
用于指定导出/导入的 Excel 文件格式版本
- 作者:
- JEECG
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明HSSF 格式 - Excel 97-2003 版本 (.xls) 文件扩展名:.xls 最大行数:65,536 行(2^16) 最大列数:256 列(2^8) 适用场景:兼容老版本 Excel,数据量较小的场景 对应 POI 类:HSSFWorkbookXSSF 格式 - Excel 2007+ 版本 (.xlsx) 文件扩展名:.xlsx 最大行数:1,048,576 行(2^20) 最大列数:16,384 列(2^14) 适用场景:现代 Excel 版本,大数据量导出,推荐使用 对应 POI 类:XSSFWorkbook 优势:支持更大数据量,文件压缩比更高,功能更丰富 -
方法概要
-
枚举常量详细资料
-
HSSF
HSSF 格式 - Excel 97-2003 版本 (.xls)- 文件扩展名:.xls
- 最大行数:65,536 行(2^16)
- 最大列数:256 列(2^8)
- 适用场景:兼容老版本 Excel,数据量较小的场景
- 对应 POI 类:HSSFWorkbook
-
XSSF
XSSF 格式 - Excel 2007+ 版本 (.xlsx)- 文件扩展名:.xlsx
- 最大行数:1,048,576 行(2^20)
- 最大列数:16,384 列(2^14)
- 适用场景:现代 Excel 版本,大数据量导出,推荐使用
- 对应 POI 类:XSSFWorkbook
- 优势:支持更大数据量,文件压缩比更高,功能更丰富
注意:导出时请确保文件扩展名与格式类型匹配,避免文件损坏
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-