| Package | Description |
|---|---|
| org.dromara.hutool.poi.excel |
POI中对Excel读写的封装,入口为ExcelUtil
|
| org.dromara.hutool.poi.excel.cell.setters |
单元格值自定义设置器,主要用于Excel数据导出,用户通过自定义此接口,实现可定制化的单元格值设定
|
| org.dromara.hutool.poi.excel.writer |
Excel生成封装
|
| Modifier and Type | Method and Description |
|---|---|
static ExcelImgType |
ExcelImgUtil.getImgType(File imgFile)
获取图片类型
|
static ExcelImgType |
ExcelImgType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExcelImgType[] |
ExcelImgType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
ImgCellSetter(byte[] pictureData,
ExcelImgType imgType)
构造
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ExcelDrawingUtil.drawingImg(org.apache.poi.ss.usermodel.Sheet sheet,
byte[] pictureData,
ExcelImgType imgType,
SimpleClientAnchor clientAnchor)
写出图片,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中 |
ExcelWriter |
ExcelWriter.writeImg(byte[] pictureData,
ExcelImgType imgType,
SimpleClientAnchor clientAnchor)
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中 |
ExcelWriter |
ExcelWriter.writeImg(File imgFile,
ExcelImgType imgType,
SimpleClientAnchor clientAnchor)
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中 |
Copyright © 2024. All rights reserved.