Package | Description |
---|---|
org.dromara.hutool.poi.excel |
POI中对Excel读写的封装,入口为ExcelUtil
|
org.dromara.hutool.poi.excel.reader |
数据读取接口及实现,此包中定义了SheetReader,通过实现此接口,实现sheet中的数据读取为不同类型。
|
org.dromara.hutool.poi.excel.writer |
Excel生成封装
|
Modifier and Type | Class and Description |
---|---|
class |
ExcelBase<T extends ExcelBase<T,C>,C extends ExcelConfig>
Excel基础类,用于抽象ExcelWriter和ExcelReader中共用部分的对象和方法
|
Modifier and Type | Field and Description |
---|---|
protected C |
ExcelBase.config
Excel配置,此项不为空
|
Modifier and Type | Method and Description |
---|---|
ExcelConfig |
ExcelConfig.addHeaderAlias(String header,
String alias)
增加标题别名
|
ExcelConfig |
ExcelConfig.clearHeaderAlias()
清空标题别名,key为Map中的key,value为别名
|
ExcelConfig |
ExcelConfig.removeHeaderAlias(String header)
去除标题别名
|
ExcelConfig |
ExcelConfig.setCellEditor(CellEditor cellEditor)
设置单元格值处理逻辑
当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等 |
ExcelConfig |
ExcelConfig.setHeaderAlias(Map<String,String> headerAlias)
设置标题行的别名Map
|
Modifier and Type | Class and Description |
---|---|
class |
ExcelReadConfig
Excel读取配置
|
Modifier and Type | Class and Description |
---|---|
class |
ExcelWriteConfig
Excel写出配置
|
Copyright © 2025. All rights reserved.