跳过导航链接
A B C D E F G H I L M N O P R S T V W X 

A

AbstractRowHandler<T> - cn.hutool.poi.excel.sax.handler中的类
抽象行数据处理器,通过实现AbstractRowHandler.handle(int, long, List) 处理原始数据
并调用AbstractRowHandler.handleData(int, long, Object)处理经过转换后的数据。
AbstractRowHandler(int, int) - 类 的构造器cn.hutool.poi.excel.sax.handler.AbstractRowHandler
构造
AbstractSheetReader<T> - cn.hutool.poi.excel.reader中的类
抽象Sheet数据读取实现
AbstractSheetReader(int, int) - 类 的构造器cn.hutool.poi.excel.reader.AbstractSheetReader
构造
add(Div) - 类 中的方法cn.hutool.poi.ofd.OfdWriter
增加节点
add(int, Annotation) - 类 中的方法cn.hutool.poi.ofd.OfdWriter
增加注释,比如水印等
addHeaderAlias(String, String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
增加标题别名
addHeaderAlias(String, String) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
 
addHeaderAlias(String, String) - 类 中的方法cn.hutool.poi.excel.reader.AbstractSheetReader
增加标题别名
addHeaderAlias(String, String) - 类 中的方法cn.hutool.poi.excel.reader.BeanSheetReader
增加标题别名
addPicture(File, int, int) - 类 中的方法cn.hutool.poi.ofd.OfdWriter
追加图片
addPicture(Path, int, int) - 类 中的方法cn.hutool.poi.ofd.OfdWriter
追加图片
addPicture(File, int, int) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加图片,单独成段落
addPicture(InputStream, PicType, String, int, int) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加图片,单独成段落,增加后图片流关闭,默认居中对齐
addPicture(InputStream, PicType, String, int, int, ParagraphAlignment) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加图片,单独成段落,增加后图片流关闭
addSelect(int, int, String...) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
增加下拉列表
addSelect(CellRangeAddressList, String...) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
增加下拉列表
addTable(Iterable<?>) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加表格数据
addText(Font, String...) - 类 中的方法cn.hutool.poi.ofd.OfdWriter
增加文本内容
addText(Font, String...) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加一个段落
addText(ParagraphAlignment, Font, String...) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加一个段落
addValidationData(DataValidation) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
增加单元格控制,比如下拉列表、日期验证、数字范围验证等
aliasHeader(List<Object>) - 类 中的方法cn.hutool.poi.excel.reader.AbstractSheetReader
转换标题别名,如果没有别名则使用原标题,当标题为空时,列号对应的字母便是header
aliasHeader(Object, int) - 类 中的方法cn.hutool.poi.excel.reader.AbstractSheetReader
转换标题别名,如果没有别名则使用原标题,当标题为空时,列号对应的字母便是header
Align - cn.hutool.poi.excel.style中的枚举
对齐方式枚举
AttributeName - cn.hutool.poi.excel.sax中的枚举
Excel的XML中属性名枚举
autoSizeColumn(int) - 类 中的方法cn.hutool.poi.excel.BigExcelWriter
 
autoSizeColumn(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置某列为自动宽度,不考虑合并单元格
此方法必须在指定列数据完全写出后调用才有效。
autoSizeColumn(int, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置某列为自动宽度
此方法必须在指定列数据完全写出后调用才有效。
autoSizeColumnAll() - 类 中的方法cn.hutool.poi.excel.BigExcelWriter
 
autoSizeColumnAll() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置所有列为自动宽度,不考虑合并单元格
此方法必须在指定列数据完全写出后调用才有效。

B

BeanRowHandler<T> - cn.hutool.poi.excel.sax.handler中的类
Bean形式的行处理器
将一行数据转换为Map,key为指定行,value为当前行对应位置的值
BeanRowHandler(int, int, int, Class<T>) - 类 的构造器cn.hutool.poi.excel.sax.handler.BeanRowHandler
构造
BeanSheetReader<T> - cn.hutool.poi.excel.reader中的类
读取Sheet为bean的List列表形式
BeanSheetReader(int, int, int, Class<T>) - 类 的构造器cn.hutool.poi.excel.reader.BeanSheetReader
构造
BigExcelWriter - cn.hutool.poi.excel中的类
大数据量Excel写出,只支持XLSX(Excel07版本)
通过封装SXSSFWorkbook,限制对滑动窗口中的行的访问来实现其低内存使用。
BigExcelWriter() - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造,默认生成xlsx格式的Excel文件
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(java.io.OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
BigExcelWriter(int) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(java.io.OutputStream)方法写出到流
若写出到文件,需要调用ExcelWriter.flush(File) 写出到文件
BigExcelWriter(int, boolean, boolean, String) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(java.io.OutputStream)方法写出到流
若写出到文件,需要调用ExcelWriter.flush(File) 写出到文件
BigExcelWriter(String) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造,默认写出到第一个sheet,第一个sheet名为sheet1
BigExcelWriter(int, String) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(java.io.OutputStream)方法写出到流
若写出到文件,需要调用ExcelWriter.flush(File) 写出到文件
BigExcelWriter(String, String) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造
BigExcelWriter(File) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造,默认写出到第一个sheet,第一个sheet名为sheet1
BigExcelWriter(File, String) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造
BigExcelWriter(SXSSFWorkbook, String) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(java.io.OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
BigExcelWriter(Sheet) - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(java.io.OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
BooleanCellSetter - cn.hutool.poi.excel.cell.setters中的类
Boolean 值单元格设置器

C

CalendarCellSetter - cn.hutool.poi.excel.cell.setters中的类
Calendar 值单元格设置器
CELL_FILL_CHAR - 类 中的静态变量cn.hutool.poi.excel.sax.ExcelSaxUtil
 
CellDataType - cn.hutool.poi.excel.sax中的枚举
单元格数据类型枚举
CellEditor - cn.hutool.poi.excel.cell中的接口
单元格编辑器接口
在读取Excel值时,有时我们需要针对所有单元格统一处理结果值(如null转默认值)的情况,实现接口并调用
reader.setCellEditor()设置编辑器
cellEditor - 类 中的变量cn.hutool.poi.excel.reader.AbstractSheetReader
单元格值处理接口
CellHandler - cn.hutool.poi.excel.cell中的接口
单元格处理器接口
用于在读取Excel单元格值时自定义结果值的获取,如在获取值的同时,获取单元格样式、坐标等信息,或根据单元格信息,装饰转换结果值
CellLocation - cn.hutool.poi.excel.cell中的类
单元格位置
CellLocation(int, int) - 类 的构造器cn.hutool.poi.excel.cell.CellLocation
构造
CellSetter - cn.hutool.poi.excel.cell中的接口
单元格值自定义设置器,主要用于Excel数据导出,用户通过自定义此接口,实现可定制化的单元格值设定
CellSetterFactory - cn.hutool.poi.excel.cell.setters中的类
CellSetter 简单静态工厂类,用于根据值类型创建对应的CellSetter
CellSetterFactory() - 类 的构造器cn.hutool.poi.excel.cell.setters.CellSetterFactory
 
cellStyle - 类 中的变量cn.hutool.poi.excel.StyleSet
默认样式
cellStyleForDate - 类 中的变量cn.hutool.poi.excel.StyleSet
默认日期样式
cellStyleForHyperlink - 类 中的变量cn.hutool.poi.excel.StyleSet
默认链接样式
cellStyleForNumber - 类 中的变量cn.hutool.poi.excel.StyleSet
默认数字样式
CellUtil - cn.hutool.poi.excel.cell中的类
Excel表格中单元格工具类
CellUtil() - 类 的构造器cn.hutool.poi.excel.cell.CellUtil
 
CellValue<T> - cn.hutool.poi.excel.cell中的接口
抽象的单元格值接口,用于判断不同类型的单元格值
characters(char[], int, int) - 类 中的方法cn.hutool.poi.excel.sax.SheetDataSaxHandler
 
CharSequenceCellSetter - cn.hutool.poi.excel.cell.setters中的类
CharSequence 值单元格设置器
checkPoiImport() - 类 中的静态方法cn.hutool.poi.PoiChecker
检查POI包的引入情况
clearHeaderAlias() - 类 中的方法cn.hutool.poi.excel.ExcelBase
清空标题别名,key为Map中的key,value为别名
clearHeaderAlias() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
 
cloneCellStyle(Cell, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
克隆新的CellStyle
cloneCellStyle(Workbook, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
克隆新的CellStyle
cloneSheet(int, String, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelBase
复制当前sheet为新sheet
close() - 类 中的方法cn.hutool.poi.excel.BigExcelWriter
 
close() - 类 中的方法cn.hutool.poi.excel.ExcelBase
关闭工作簿
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
close() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
关闭工作簿
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
close() - 类 中的方法cn.hutool.poi.ofd.OfdWriter
 
close() - 类 中的方法cn.hutool.poi.word.Word07Writer
关闭Word文档
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
closeWithoutFlush() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
关闭工作簿但是不写出
closeWithoutFlush() - 类 中的方法cn.hutool.poi.word.Word07Writer
关闭Word文档但是不写出
cn.hutool.poi - 程序包 cn.hutool.poi
POI封装实现
Java针对MS Office的操作的库屈指可数,比较有名的就是Apache的POI库。
cn.hutool.poi.excel - 程序包 cn.hutool.poi.excel
POI中对Excel读写的封装,入口为ExcelUtil
cn.hutool.poi.excel.cell - 程序包 cn.hutool.poi.excel.cell
Excel中单元格相关类,入口为CellUtil
cn.hutool.poi.excel.cell.setters - 程序包 cn.hutool.poi.excel.cell.setters
Excel中单元格设置相关类,一些CellSetter的实现类
cn.hutool.poi.excel.cell.values - 程序包 cn.hutool.poi.excel.cell.values
 
cn.hutool.poi.excel.editors - 程序包 cn.hutool.poi.excel.editors
单元格值编辑器,内部使用
cn.hutool.poi.excel.reader - 程序包 cn.hutool.poi.excel.reader
数据读取接口及实现,此包中定义了SheetReader,通过实现此接口,实现sheet中的数据读取为不同类型。
cn.hutool.poi.excel.sax - 程序包 cn.hutool.poi.excel.sax
Sax方式操作Excel方式的封装
cn.hutool.poi.excel.sax.handler - 程序包 cn.hutool.poi.excel.sax.handler
Sax读取中行处理器的定义和实现
cn.hutool.poi.excel.style - 程序包 cn.hutool.poi.excel.style
Excel样式封装,入口为:StyleUtil
cn.hutool.poi.exceptions - 程序包 cn.hutool.poi.exceptions
POI相关异常
cn.hutool.poi.ofd - 程序包 cn.hutool.poi.ofd
开放版式文档(Open Fixed-layout Document )封装,基于ofdrw(https://gitee.com/Trisia/ofdrw)
cn.hutool.poi.word - 程序包 cn.hutool.poi.word
POI中对Word操作封装
colNameToIndex(String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
根据表元的列名转换为列号
ColumnSheetReader - cn.hutool.poi.excel.reader中的类
读取单独一列
ColumnSheetReader(int, int, int) - 类 的构造器cn.hutool.poi.excel.reader.ColumnSheetReader
构造
convertFunc - 类 中的变量cn.hutool.poi.excel.sax.handler.AbstractRowHandler
行数据转换函数
countNullCell(String, String) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
计算两个单元格之间的单元格数目(同一行)
create(File) - 类 中的静态方法cn.hutool.poi.word.DocUtil
创建XWPFDocument,如果文件已存在则读取之,否则创建新的
createBook(String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿(读写模式)
createBook(String, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿
createBook(File) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿(读写模式)
createBook(File, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿
createBook(File, String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿(读写模式)
createBook(File, String, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿
createBook(InputStream) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿(只读模式)
createBook(InputStream, String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿(只读模式)
createBook(boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建新的空白Excel工作簿
createBookForWriter(File) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建工作簿,用于Excel写出(读写模式) 1. excelFile为null时直接返回一个空的工作簿,默认xlsx格式 2.
createCellSetter(Object) - 类 中的静态方法cn.hutool.poi.excel.cell.setters.CellSetterFactory
创建值对应类型的CellSetter
createCellStyle(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
为指定单元格创建样式,返回样式后可以设置样式内容
createCellStyle(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
为指定单元格创建样式,返回样式后可以设置样式内容
createCellStyle() - 类 中的方法cn.hutool.poi.excel.ExcelBase
创建单元格样式
createCellStyle(Workbook) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
创建单元格样式
createColumnStyle(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
创建某一列的样式,返回样式后可以设置样式内容
createDefaultCellStyle(Workbook) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
创建默认普通单元格样式 1.
createFont() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
创建字体
createFont(Workbook, short, short, String) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
创建字体
createHeadCellStyle(Workbook) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
创建默认头部样式
createHyperlink(HyperlinkType, String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
创建 Hyperlink,默认内容(标签为链接地址本身)
createHyperlink(HyperlinkType, String, String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
创建 Hyperlink,默认内容
createRowStyle(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
创建某一行的样式,返回样式后可以设置样式内容
createSaxReader(boolean, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
createSXSSFBook(String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿(读写模式)
createSXSSFBook(String, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿
createSXSSFBook(File) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿(读写模式)
createSXSSFBook(File, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿
createSXSSFBook(File, String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿(读写模式)
createSXSSFBook(File, String, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿
createSXSSFBook(InputStream) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿(只读模式)
createSXSSFBook(InputStream, String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿(只读模式)
createSXSSFBook() - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建空的SXSSFWorkbook,用于大批量数据写出
createSXSSFBook(int) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建空的SXSSFWorkbook,用于大批量数据写出
createSXSSFBook(int, boolean, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建空的SXSSFWorkbook,用于大批量数据写出
createTable(XWPFDocument) - 类 中的静态方法cn.hutool.poi.word.TableUtil
创建空表,只有一行
createTable(XWPFDocument, Iterable<?>) - 类 中的静态方法cn.hutool.poi.word.TableUtil
创建表格并填充数据,默认表格

D

DateCellSetter - cn.hutool.poi.excel.cell.setters中的类
Date 值单元格设置器
DEFAULT_WINDOW_SIZE - 类 中的静态变量cn.hutool.poi.excel.BigExcelWriter
 
destFile - 类 中的变量cn.hutool.poi.excel.ExcelBase
目标文件,如果用户读取为流或自行创建的Workbook或Sheet,此参数为null
destFile - 类 中的变量cn.hutool.poi.word.Word07Writer
目标文件
disableDefaultStyle() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
禁用默认样式
doAfterAllAnalysed() - 接口 中的方法cn.hutool.poi.excel.sax.handler.RowHandler
处理一个sheet页完成的操作
DocUtil - cn.hutool.poi.word中的类
Word Document工具
DocUtil() - 类 的构造器cn.hutool.poi.word.DocUtil
 

E

edit(Cell, Object) - 接口 中的方法cn.hutool.poi.excel.cell.CellEditor
编辑,根据单元格信息处理结果值,返回处理后的结果
edit(Cell, Object) - 类 中的方法cn.hutool.poi.excel.editors.NumericToIntEditor
 
edit(Cell, Object) - 类 中的方法cn.hutool.poi.excel.editors.TrimEditor
 
ElementName - cn.hutool.poi.excel.sax中的枚举
标签名枚举
endElement(String, String, String) - 类 中的方法cn.hutool.poi.excel.sax.SheetDataSaxHandler
标签结束的回调处理方法
endRowIndex - 类 中的变量cn.hutool.poi.excel.reader.AbstractSheetReader
读取结束行(包含,从0开始计数)
endRowIndex - 类 中的变量cn.hutool.poi.excel.sax.handler.AbstractRowHandler
读取结束行(包含,从0开始计数)
equals(Object) - 类 中的方法cn.hutool.poi.excel.cell.CellLocation
 
ErrorCellValue - cn.hutool.poi.excel.cell.values中的类
ERROR类型单元格值
ErrorCellValue(Cell) - 类 的构造器cn.hutool.poi.excel.cell.values.ErrorCellValue
构造
EscapeStrCellSetter - cn.hutool.poi.excel.cell.setters中的类
字符串转义Cell值设置器
使用 _x005F前缀转义_xXXXX_,避免被decode的问题
如用户传入'_x5116_'会导致乱码,使用此设置器转义为'_x005F_x5116_'
EscapeStrCellSetter(CharSequence) - 类 的构造器cn.hutool.poi.excel.cell.setters.EscapeStrCellSetter
构造
Excel03SaxReader - cn.hutool.poi.excel.sax中的类
Excel2003格式的事件-用户模型方式读取器,在Hutool中,统一将此归类为Sax读取
参考:http://www.cnblogs.com/wshsdlau/p/5643862.html
Excel03SaxReader(RowHandler) - 类 的构造器cn.hutool.poi.excel.sax.Excel03SaxReader
构造
Excel07SaxReader - cn.hutool.poi.excel.sax中的类
Sax方式读取Excel文件
Excel2007格式说明见:http://www.cnblogs.com/wangmingshun/p/6654143.html
Excel07SaxReader(RowHandler) - 类 的构造器cn.hutool.poi.excel.sax.Excel07SaxReader
构造
ExcelBase<T extends ExcelBase<T>> - cn.hutool.poi.excel中的类
Excel基础类,用于抽象ExcelWriter和ExcelReader中共用部分的对象和方法
ExcelBase(Sheet) - 类 的构造器cn.hutool.poi.excel.ExcelBase
构造
ExcelDateUtil - cn.hutool.poi.excel中的类
Excel中日期判断、读取、处理等补充工具类
ExcelDateUtil() - 类 的构造器cn.hutool.poi.excel.ExcelDateUtil
 
ExcelExtractorUtil - cn.hutool.poi.excel中的类
ExcelExtractor工具封装
ExcelExtractorUtil() - 类 的构造器cn.hutool.poi.excel.ExcelExtractorUtil
 
ExcelFileUtil - cn.hutool.poi.excel中的类
Excel文件工具类
ExcelFileUtil() - 类 的构造器cn.hutool.poi.excel.ExcelFileUtil
 
ExcelPicUtil - cn.hutool.poi.excel中的类
Excel图片工具类
ExcelPicUtil() - 类 的构造器cn.hutool.poi.excel.ExcelPicUtil
 
ExcelReader - cn.hutool.poi.excel中的类
Excel读取器
读取Excel工作簿
ExcelReader(String, int) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelReader(String, String) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelReader(File, int) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造(读写方式读取)
ExcelReader(File, String) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造(读写方式读取)
ExcelReader(InputStream, int) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造(只读方式读取)
ExcelReader(InputStream, String) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造(只读方式读取)
ExcelReader(Workbook, int) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelReader(Workbook, String) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelReader(Sheet) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelSaxReader<T> - cn.hutool.poi.excel.sax中的接口
Sax方式读取Excel接口,提供一些共用方法
ExcelSaxUtil - cn.hutool.poi.excel.sax中的类
Sax方式读取Excel相关工具类
ExcelSaxUtil() - 类 的构造器cn.hutool.poi.excel.sax.ExcelSaxUtil
 
ExcelUtil - cn.hutool.poi.excel中的类
Excel工具类,不建议直接使用index直接操作sheet,在wps/excel中sheet显示顺序与index无关,还有隐藏sheet
ExcelUtil() - 类 的构造器cn.hutool.poi.excel.ExcelUtil
 
ExcelWriter - cn.hutool.poi.excel中的类
Excel 写入器
此工具用于通过POI将数据写出到Excel,此对象可完成以下两个功能 1.
ExcelWriter() - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造,默认生成xls格式的Excel文件
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
ExcelWriter(boolean) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(OutputStream)方法写出到流
若写出到文件,需要调用ExcelWriter.flush(File) 写出到文件
ExcelWriter(String) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造,默认写出到第一个sheet,第一个sheet名为sheet1
ExcelWriter(boolean, String) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(OutputStream)方法写出到流
若写出到文件,需要调用ExcelWriter.flush(File) 写出到文件
ExcelWriter(String, String) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造
ExcelWriter(File) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造,默认写出到第一个sheet,第一个sheet名为sheet1
ExcelWriter(File, String) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造
ExcelWriter(Workbook, String) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
ExcelWriter(Sheet) - 类 的构造器cn.hutool.poi.excel.ExcelWriter
构造
此构造不传入写出的Excel文件路径,只能调用ExcelWriter.flush(OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件

F

flush(OutputStream, boolean) - 类 中的方法cn.hutool.poi.excel.BigExcelWriter
 
flush() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
将Excel Workbook刷出到预定义的文件
如果用户未自定义输出的文件,将抛出NullPointerException
预定义文件可以通过ExcelWriter.setDestFile(File) 方法预定义,或者通过构造定义
flush(File) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
将Excel Workbook刷出到文件
如果用户未自定义输出的文件,将抛出NullPointerException
flush(OutputStream) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
将Excel Workbook刷出到输出流
flush(OutputStream, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
将Excel Workbook刷出到输出流
flush() - 类 中的方法cn.hutool.poi.word.Word07Writer
将Excel Workbook刷出到预定义的文件
如果用户未自定义输出的文件,将抛出NullPointerException
预定义文件可以通过Word07Writer.setDestFile(File) 方法预定义,或者通过构造定义
flush(File) - 类 中的方法cn.hutool.poi.word.Word07Writer
将Excel Workbook刷出到文件
如果用户未自定义输出的文件,将抛出NullPointerException
flush(OutputStream) - 类 中的方法cn.hutool.poi.word.Word07Writer
将Word Workbook刷出到输出流
flush(OutputStream, boolean) - 类 中的方法cn.hutool.poi.word.Word07Writer
将Word Document刷出到输出流
formatCellContent(String, int, String) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
格式化数字或日期值
FormulaCellValue - cn.hutool.poi.excel.cell中的类
公式类型的值
在Sax读取模式时,此对象用于接收单元格的公式以及公式结果值信息 在写出模式时,用于定义写出的单元格类型为公式
FormulaCellValue(String) - 类 的构造器cn.hutool.poi.excel.cell.FormulaCellValue
构造
FormulaCellValue(String, Object) - 类 的构造器cn.hutool.poi.excel.cell.FormulaCellValue
构造

G

getAddress() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getArrayFormulaRange() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getBigWriter() - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得BigExcelWriter,默认写出到第一个sheet
不传入写出的Excel文件路径,只能调用ExcelWriter#flush(OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
getBigWriter(int) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得BigExcelWriter,默认写出到第一个sheet
不传入写出的Excel文件路径,只能调用ExcelWriter#flush(OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
getBigWriter(String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得BigExcelWriter,默认写出到第一个sheet
getBigWriter(File) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得BigExcelWriter,默认写出到第一个sheet,名字为sheet1
getBigWriter(String, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
getBigWriter(File, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
getBooleanCellValue() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCachedFormulaResultType() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCachedFormulaResultTypeEnum() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCell(Row, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取单元格,如果单元格不存在,返回NullCell
getCell(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取指定坐标单元格,单元格不存在时返回null
getCell(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取指定坐标单元格,单元格不存在时返回null
getCell(String, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取指定坐标单元格,如果isCreateIfNotExist为false,则在单元格不存在时返回null
getCell(int, int, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取指定坐标单元格,如果isCreateIfNotExist为false,则在单元格不存在时返回null
getCellComment() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCellFormula() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCellRangeAddress(Sheet, String) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取合并单元格CellRangeAddress,如果不是返回null
getCellRangeAddress(Cell) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取合并单元格CellRangeAddress,如果不是返回null
getCellRangeAddress(Sheet, int, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取合并单元格CellRangeAddress,如果不是返回null
getCellStyle() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCellStyle() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取单元格样式,获取样式后可自定义样式
getCellStyle() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取常规单元格样式,获取后可以定义整体头部样式
getCellStyleForDate() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取日期单元格样式,获取后可以定义整体日期样式
getCellStyleForHyperlink() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取链接单元格样式,获取后可以定义整体链接样式
getCellStyleForNumber() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取数字(带小数点)单元格样式,获取后可以定义整体数字样式
getCellType() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCellTypeEnum() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getCellValue(Cell) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取单元格值
getCellValue(Cell, boolean) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取单元格值
getCellValue(Cell, CellEditor) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取单元格值
getCellValue(Cell, CellType, boolean) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取单元格值
getCellValue(Cell, CellType, CellEditor) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取单元格值
如果单元格值为数字格式,则判断其格式中是否有小数部分,无则返回Long类型,否则返回Double类型
getColumnCount() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取第一行总列数,计算方法为: 最后一列序号 + 1
getColumnCount(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取总列数,计算方法为: 最后一列序号 + 1
getColumnIndex() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getContentType() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取Content-Type头对应的值,可以通过调用以下方法快速设置下载Excel的头信息: response.setContentType(excelWriter.getContentType());
getCurrentRow() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获得当前行
getDataValue(CellDataType, String, SharedStrings, String) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
根据数据类型获取数据
getDateCellValue() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getDateValue(String) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
获取日期
getDateValue(double) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
获取日期
getDisposition(String, Charset) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取Content-Disposition头对应的值,可以通过调用以下方法快速设置下载Excel的头信息: response.setHeader("Content-Disposition", excelWriter.getDisposition("test.xlsx", CharsetUtil.CHARSET_UTF_8));
getDoc() - 类 中的方法cn.hutool.poi.word.Word07Writer
获取XWPFDocument
getErrorCellValue() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getExtractor(Workbook) - 类 中的静态方法cn.hutool.poi.excel.ExcelExtractorUtil
获取 ExcelExtractor 对象
getExtractor() - 类 中的方法cn.hutool.poi.excel.ExcelReader
获取 ExcelExtractor 对象
getFormat(Workbook, String) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
创建数据格式并获取格式
getHeadCellStyle() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取头部样式,获取样式后可自定义样式
getHeadCellStyle() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取头部样式,获取后可以定义整体头部样式
getHeaderAlias() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获得标题行的别名Map
getHyperlink() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getLocalDateTimeCellValue() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getMergedRegionCell(Cell) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取合并单元格
传入的x,y坐标(列行数)可以是合并单元格范围内的任意一个单元格
getMergedRegionCell(Sheet, int, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取合并单元格
传入的x,y坐标(列行数)可以是合并单元格范围内的任意一个单元格
getMergedRegionValue(Sheet, String) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取合并单元格的值
传入的x,y坐标(列行数)可以是合并单元格范围内的任意一个单元格
getMergedRegionValue(Sheet, int, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取合并单元格的值
传入的x,y坐标(列行数)可以是合并单元格范围内的任意一个单元格
getName() - 枚举 中的方法cn.hutool.poi.excel.sax.CellDataType
获取对应类型的属性值
getNumberOrDateValue(CellValueRecordInterface, double, FormatTrackingHSSFListener) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
在Excel03 sax读取中获取日期或数字类型的结果值
getNumericCellValue() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getOrCreateCell(Row, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取已有单元格或创建新单元格
getOrCreateCell(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取或创建指定坐标单元格
getOrCreateCell(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取或创建指定坐标单元格
getOrCreateCell(XWPFTableRow, int) - 类 中的静态方法cn.hutool.poi.word.TableUtil
获取或创建新单元格
存在则直接返回,不存在创建新的单元格
getOrCreateCellStyle(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
为指定单元格获取或者创建样式,返回样式后可以设置样式内容
getOrCreateCellStyle(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
为指定单元格获取或者创建样式,返回样式后可以设置样式内容
getOrCreateColumnStyle(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取或创建某一列的样式,返回样式后可以设置样式内容
需要注意,此方法返回行样式,设置背景色在单元格设置值后会被覆盖,需要单独设置其单元格的样式。
getOrCreateRow(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取或者创建行
getOrCreateRow(Sheet, int) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
获取已有行或创建新行
getOrCreateRow(XWPFTable, int) - 类 中的静态方法cn.hutool.poi.word.TableUtil
获取或创建新行
存在则直接返回,不存在创建新的行
getOrCreateRowStyle(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取或创建某一行的样式,返回样式后可以设置样式内容
需要注意,此方法返回行样式,设置背景色在单元格设置值后会被覆盖,需要单独设置其单元格的样式。
getOrCreateSheet(Workbook, String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
获取或者创建sheet表
如果sheet表在Workbook中已经存在,则获取之,否则创建之
getOrCreateSheet(Workbook, int) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
获取或者创建sheet表
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之(命名为默认)
在读取中,此方法用于切换读取的sheet,在写出时,此方法用于新建或者切换sheet
getPhysicalRowCount() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取有记录的行数,计算方法为: 最后一行序号 - 第一行序号 + 1
getPicMap(Workbook, int) - 类 中的静态方法cn.hutool.poi.excel.ExcelPicUtil
获取工作簿指定sheet中图片列表
getReader(String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
默认调用第一个sheet
getReader(File) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
默认调用第一个sheet
getReader(String, int) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
getReader(String, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
getReader(File, int) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
getReader(File, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
getReader(InputStream) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
默认调用第一个sheet,读取结束自动关闭流
getReader(InputStream, int) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
读取结束自动关闭流
getReader(InputStream, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
读取结束自动关闭流
getResult() - 类 中的方法cn.hutool.poi.excel.cell.FormulaCellValue
获取结果
getRichStringCellValue() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getRidByIndex(int) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
通过sheet的序号获取rid
getRidByIndexBase0(int) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
通过sheet的序号获取rid
getRidByName(String) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
根据sheet name获取rid,从1开始
getRidByNameBase0(String) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
根据sheet name获取rid,从0开始
getRidBySheetId(int) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
根据sheetId获取rid,从1开始
getRidBySheetIdBase0(int) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
根据sheetId获取rid,从0开始
getRow() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getRowCount() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取总行数,计算方法为: 最后一行序号 + 1
getRowIndex() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getSheet() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getSheet() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取当前Sheet
getSheetCount() - 类 中的方法cn.hutool.poi.excel.ExcelBase
返回工作簿表格数
getSheetIndex() - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
获得Sheet序号,如果处理所有sheet,获得最大的Sheet序号,从0开始
getSheetName() - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
获得Sheet名,如果处理所有sheet,获得后一个Sheet名,从0开始
getSheetNames() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取表名列表
getSheetNames() - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
获取所有sheet名称
getSheets() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取此工作簿所有Sheet表
getStringCellValue() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
getStyleByValueType(Object, boolean) - 类 中的方法cn.hutool.poi.excel.StyleSet
获取值对应的公共单元格样式
getStyleSet() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取样式集,样式集可以自定义包括:
1.
getValue() - 接口 中的方法cn.hutool.poi.excel.cell.CellValue
获取单元格值
getValue() - 类 中的方法cn.hutool.poi.excel.cell.FormulaCellValue
 
getValue() - 类 中的方法cn.hutool.poi.excel.cell.values.ErrorCellValue
 
getValue() - 类 中的方法cn.hutool.poi.excel.cell.values.NumericCellValue
 
getValue(Attributes) - 枚举 中的方法cn.hutool.poi.excel.sax.AttributeName
从属性里列表中获取对应属性值
getValue() - 枚举 中的方法cn.hutool.poi.word.PicType
获取图片类型对应值
getWorkbook() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取Workbook
getWriter() - 类 中的方法cn.hutool.poi.excel.ExcelReader
获取Excel写出器
在读取Excel并做一定编辑后,获取写出器写出,规则如下: 1.
getWriter() - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得ExcelWriter,默认写出到第一个sheet
不传入写出的Excel文件路径,只能调用ExcelWriter#flush(OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
getWriter(boolean) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得ExcelWriter,默认写出到第一个sheet
不传入写出的Excel文件路径,只能调用ExcelWriter#flush(OutputStream)方法写出到流
若写出到文件,还需调用ExcelWriter.setDestFile(File)方法自定义写出的文件,然后调用ExcelWriter.flush()方法写出到文件
getWriter(String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得ExcelWriter,默认写出到第一个sheet
getWriter(File) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得ExcelWriter,默认写出到第一个sheet,名字为sheet1
getWriter(String, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
getWriter(File, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
getWriter() - 类 中的静态方法cn.hutool.poi.word.WordUtil
创建Word 07格式的生成器
getWriter(File) - 类 中的静态方法cn.hutool.poi.word.WordUtil
创建Word 07格式的生成器
getWriterWithSheet(String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获得ExcelWriter,默认写出到第一个sheet
getX() - 类 中的方法cn.hutool.poi.excel.cell.CellLocation
 
getY() - 类 中的方法cn.hutool.poi.excel.cell.CellLocation
 

H

handle(Cell, Object) - 接口 中的方法cn.hutool.poi.excel.cell.CellHandler
处理
handle(int, long, List<Object>) - 类 中的方法cn.hutool.poi.excel.sax.handler.AbstractRowHandler
 
handle(int, long, List<Object>) - 类 中的方法cn.hutool.poi.excel.sax.handler.BeanRowHandler
 
handle(int, long, List<Object>) - 类 中的方法cn.hutool.poi.excel.sax.handler.MapRowHandler
 
handle(int, long, List<Object>) - 接口 中的方法cn.hutool.poi.excel.sax.handler.RowHandler
处理一行数据
handleCell(int, long, int, Object, CellStyle) - 接口 中的方法cn.hutool.poi.excel.sax.handler.RowHandler
处理一个单元格的数据
handleData(int, long, T) - 类 中的方法cn.hutool.poi.excel.sax.handler.AbstractRowHandler
处理转换后的数据
hashCode() - 类 中的方法cn.hutool.poi.excel.cell.CellLocation
 
headCellStyle - 类 中的变量cn.hutool.poi.excel.StyleSet
标题样式
headerAlias - 类 中的变量cn.hutool.poi.excel.ExcelBase
标题行别名
HyperlinkCellSetter - cn.hutool.poi.excel.cell.setters中的类
Hyperlink 值单元格设置器

I

ignoreEmptyRow - 类 中的变量cn.hutool.poi.excel.reader.AbstractSheetReader
是否忽略空行
index - 类 中的变量cn.hutool.poi.excel.sax.SheetDataSaxHandler
 
indexToColName(int) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
将Sheet列号变为列名
insertRow(Sheet, int, int) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
插入行
INSTANCE - 类 中的静态变量cn.hutool.poi.excel.cell.setters.NullCellSetter
 
isClosed - 类 中的变量cn.hutool.poi.excel.ExcelBase
是否被关闭
isClosed - 类 中的变量cn.hutool.poi.word.Word07Writer
是否被关闭
isDateFormat(Cell) - 类 中的静态方法cn.hutool.poi.excel.ExcelDateUtil
 
isDateFormat(Cell, ConditionalFormattingEvaluator) - 类 中的静态方法cn.hutool.poi.excel.ExcelDateUtil
判断是否日期格式
isDateFormat(ExcelNumberFormat) - 类 中的静态方法cn.hutool.poi.excel.ExcelDateUtil
判断是否日期格式
isDateFormat(int, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelDateUtil
判断日期格式
isDateFormat(CellValueRecordInterface, FormatTrackingHSSFListener) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
判断数字Record中是否为日期格式
isDateFormat(int, String) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
判断日期格式
isEmpty(Sheet) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
sheet是否为空
isIgnoreEmptyRow() - 类 中的方法cn.hutool.poi.excel.ExcelReader
是否忽略空行
isMergedRegion(Sheet, String) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
判断指定的单元格是否是合并单元格
isMergedRegion(Cell) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
判断指定的单元格是否是合并单元格
isMergedRegion(Sheet, int, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
判断指定的单元格是否是合并单元格
isNullOrDefaultStyle(Workbook, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
给定样式是否为null(无样式)或默认样式,默认样式为workbook.getCellStyleAt(0)
isPartOfArrayFormulaGroup() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
isXls(InputStream) - 类 中的静态方法cn.hutool.poi.excel.ExcelFileUtil
是否为XLS格式的Excel文件(HSSF)
XLS文件主要用于Excel 97~2003创建
此方法会自动调用InputStream.reset()方法
isXlsx() - 类 中的方法cn.hutool.poi.excel.ExcelBase
判断是否为xlsx格式的Excel表(Excel07格式)
isXlsx(InputStream) - 类 中的静态方法cn.hutool.poi.excel.ExcelFileUtil
是否为XLSX格式的Excel文件(XSSF)
XLSX文件主要用于Excel 2007+创建
此方法会自动调用InputStream.reset()方法
isXlsx(File) - 类 中的静态方法cn.hutool.poi.excel.ExcelFileUtil
是否为XLSX格式的Excel文件(XSSF)
XLSX文件主要用于Excel 2007+创建

L

ListSheetReader - cn.hutool.poi.excel.reader中的类
读取Sheet为List列表形式
ListSheetReader(int, int, boolean) - 类 的构造器cn.hutool.poi.excel.reader.ListSheetReader
构造

M

MapRowHandler - cn.hutool.poi.excel.sax.handler中的类
Map形式的行处理器
将一行数据转换为Map,key为指定行,value为当前行对应位置的值
MapRowHandler(int, int, int) - 类 的构造器cn.hutool.poi.excel.sax.handler.MapRowHandler
构造
MapSheetReader - cn.hutool.poi.excel.reader中的类
读取Sheet为Map的List列表形式
MapSheetReader(int, int, int) - 类 的构造器cn.hutool.poi.excel.reader.MapSheetReader
构造
match(String) - 枚举 中的方法cn.hutool.poi.excel.sax.AttributeName
是否匹配给定属性
match(String) - 枚举 中的方法cn.hutool.poi.excel.sax.ElementName
给定标签名是否匹配当前标签
MAX_CELL_BIT - 类 中的静态变量cn.hutool.poi.excel.sax.ExcelSaxUtil
 
merge(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
合并当前行的单元格
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式
merge(int, Object) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
合并当前行的单元格,并写入对象到单元格
如果写到单元格中的内容非null,行号自动+1,否则当前行号不变
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式
merge(int, Object, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
合并某行的单元格,并写入对象到单元格
如果写到单元格中的内容非null,行号自动+1,否则当前行号不变
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式
merge(int, int, int, int, Object, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
合并某行的单元格,并写入对象到单元格
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式
merge(int, int, int, int, Object, CellStyle) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
合并单元格,并写入对象到单元格,使用指定的样式
指定样式传入null,则不使用任何样式
mergingCells(Sheet, int, int, int, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
合并单元格,可以根据设置的值来合并行和列
mergingCells(Sheet, int, int, int, int, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
合并单元格,可以根据设置的值来合并行和列

N

NO_POI_ERROR_MSG - 类 中的静态变量cn.hutool.poi.PoiChecker
没有引入POI的错误消息
NullCell - cn.hutool.poi.excel.cell中的类
当单元格不存在时使用此对象表示,得到的值都为null,此对象只用于标注单元格所在位置信息。
NullCell(Row, int) - 类 的构造器cn.hutool.poi.excel.cell.NullCell
构造
NullCellSetter - cn.hutool.poi.excel.cell.setters中的类
Number 值单元格设置器
NullCellSetter() - 类 的构造器cn.hutool.poi.excel.cell.setters.NullCellSetter
 
NumberCellSetter - cn.hutool.poi.excel.cell.setters中的类
Number 值单元格设置器
NumericCellValue - cn.hutool.poi.excel.cell.values中的类
数字类型单元格值
单元格值可能为Long、Double、Date
NumericCellValue(Cell) - 类 的构造器cn.hutool.poi.excel.cell.values.NumericCellValue
构造
NumericToIntEditor - cn.hutool.poi.excel.editors中的类
POI中NUMRIC类型的值默认返回的是Double类型,此编辑器用于转换其为int型
NumericToIntEditor() - 类 的构造器cn.hutool.poi.excel.editors.NumericToIntEditor
 

O

of(String) - 枚举 中的静态方法cn.hutool.poi.excel.sax.CellDataType
类型字符串转为枚举
of(String) - 枚举 中的静态方法cn.hutool.poi.excel.sax.ElementName
解析支持的节点名枚举
OfdWriter - cn.hutool.poi.ofd中的类
OFD文件生成器
OfdWriter(File) - 类 的构造器cn.hutool.poi.ofd.OfdWriter
构造
OfdWriter(Path) - 类 的构造器cn.hutool.poi.ofd.OfdWriter
构造
OfdWriter(OutputStream) - 类 的构造器cn.hutool.poi.ofd.OfdWriter
构造

P

parse(XSSFReader) - 类 中的静态方法cn.hutool.poi.excel.sax.SheetRidReader
XSSFReader中解析sheet名、sheet id等相关信息
passCurrentRow() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
跳过当前行
passRows(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
跳过指定行数
PicType - cn.hutool.poi.word中的枚举
Word中的图片类型
PoiChecker - cn.hutool.poi中的类
POI引入检查器
PoiChecker() - 类 的构造器cn.hutool.poi.PoiChecker
 
POIException - cn.hutool.poi.exceptions中的异常错误
POI异常
POIException(Throwable) - 异常错误 的构造器cn.hutool.poi.exceptions.POIException
 
POIException(String) - 异常错误 的构造器cn.hutool.poi.exceptions.POIException
 
POIException(String, Object...) - 异常错误 的构造器cn.hutool.poi.exceptions.POIException
 
POIException(String, Throwable) - 异常错误 的构造器cn.hutool.poi.exceptions.POIException
 
POIException(String, Throwable, boolean, boolean) - 异常错误 的构造器cn.hutool.poi.exceptions.POIException
 
POIException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.poi.exceptions.POIException
 
processRecord(Record) - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
HSSFListener 监听方法,处理 Record

R

read() - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet的所有行列数据
read(int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet
read(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet,此方法会把第一行作为标题行,替换标题别名
read(int, int, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet
read(CellHandler) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet,此方法为类流处理方式,当读到指定单元格时,会调用CellEditor接口
用户通过实现此接口,可以更加灵活地处理每个单元格的数据。
read(int, int, CellHandler) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet,此方法为类流处理方式,当读到指定单元格时,会调用CellEditor接口
用户通过实现此接口,可以更加灵活地处理每个单元格的数据。
read(int, int, int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取Excel为Map的列表
Map表示一行,标题为key,单元格内容为value
read(int, int, Class<T>) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取Excel为Bean的列表
read(int, int, int, Class<T>) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取Excel为Bean的列表
read(SheetReader<T>) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取数据为指定类型
read(Sheet) - 类 中的方法cn.hutool.poi.excel.reader.BeanSheetReader
 
read(Sheet) - 类 中的方法cn.hutool.poi.excel.reader.ColumnSheetReader
 
read(Sheet) - 类 中的方法cn.hutool.poi.excel.reader.ListSheetReader
 
read(Sheet) - 类 中的方法cn.hutool.poi.excel.reader.MapSheetReader
 
read(Sheet) - 接口 中的方法cn.hutool.poi.excel.reader.SheetReader
读取数据
read(File, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
 
read(InputStream, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
 
read(POIFSFileSystem, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
读取
read(File, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
read(File, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
read(InputStream, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
read(InputStream, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
read(OPCPackage, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
开始读取Excel,Sheet编号从0开始计数
read(OPCPackage, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
开始读取Excel,Sheet编号从0开始计数
read(XSSFReader, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
开始读取Excel,Sheet编号从0开始计数
read(File, String) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel
read(InputStream, String) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel,读取结束后并不关闭流
read(String) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel,读取所有sheet
read(File) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel,读取所有sheet
read(InputStream) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel,读取所有sheet,读取结束后并不关闭流
read(String, int) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel
read(String, String) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel
read(File, int) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel
read(InputStream, int) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel,读取结束后并不关闭流
read(XSSFReader) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
读取Wordkbook的XML中sheet标签中sheetId和rid的对应关系
readAll() - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取Excel为Map的列表,读取所有行,默认第一行做为标题,数据从第二行开始
Map表示一行,标题为key,单元格内容为value
readAll(Class<T>) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取Excel为Bean的列表,读取所有行,默认第一行做为标题,数据从第二行开始
readAsText(Workbook, boolean) - 类 中的静态方法cn.hutool.poi.excel.ExcelExtractorUtil
读取为文本格式
使用ExcelExtractor 提取Excel内容
readAsText(boolean) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取为文本格式
使用ExcelExtractor 提取Excel内容
readBySax(String, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readBySax(String, String, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readBySax(File, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readBySax(File, String, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readBySax(InputStream, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readBySax(InputStream, String, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readCellValue(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取某个单元格的值
readColumn(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet中指定列
readColumn(int, int, int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取工作簿中指定的Sheet中指定列
readFrom(InputStream, ContentHandler) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
从Excel的XML文档中读取内容,并使用ContentHandler处理
readRow(int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取某一行数据
readRow(Sheet, int) - 类 中的方法cn.hutool.poi.excel.reader.AbstractSheetReader
读取某一行数据
readRow(Row, CellEditor) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
读取一行
readRow(Row, int, int, CellEditor) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
读取一行
removeCellComment() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
removeFormula() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
removeHeaderAlias(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
去除标题别名
removeHyperlink() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
removeRow(Row) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
从工作表中删除指定的行,此方法修复sheet.shiftRows删除行时会拆分合并的单元格的问题
renameSheet(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
重命名当前sheet
renameSheet(String) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
重命名当前sheet
renameSheet(int, String) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
重命名sheet
reset() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
重置Writer,包括: 1.
resetRow() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
重置当前行为0
RichTextCellSetter - cn.hutool.poi.excel.cell.setters中的类
RichTextString 值单元格设置器
RID_PREFIX - 接口 中的静态变量cn.hutool.poi.excel.sax.ExcelSaxReader
 
RowHandler - cn.hutool.poi.excel.sax.handler中的接口
Sax方式读取Excel行处理器
rowHandler - 类 中的变量cn.hutool.poi.excel.sax.SheetDataSaxHandler
行处理器
RowUtil - cn.hutool.poi.excel中的类
Excel中的行Row封装工具类
RowUtil() - 类 的构造器cn.hutool.poi.excel.RowUtil
 

S

setAlign(CellStyle, HorizontalAlignment, VerticalAlignment) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
设置cell文本对齐样式
setAlign(HorizontalAlignment, VerticalAlignment) - 类 中的方法cn.hutool.poi.excel.StyleSet
设置cell文本对齐样式
setAsActiveCell() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setBackgroundColor(IndexedColors, boolean) - 类 中的方法cn.hutool.poi.excel.StyleSet
设置单元格背景样式
setBlank() - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setBorder(CellStyle, BorderStyle, IndexedColors) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
设置cell的四个边框粗细和颜色
setBorder(BorderStyle, IndexedColors) - 类 中的方法cn.hutool.poi.excel.StyleSet
定义所有单元格的边框类型
setCellComment(Comment) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellEditor(CellEditor) - 类 中的方法cn.hutool.poi.excel.ExcelReader
设置单元格值处理逻辑
当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
setCellEditor(CellEditor) - 类 中的方法cn.hutool.poi.excel.reader.AbstractSheetReader
设置单元格值处理逻辑
当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
setCellEditor(CellEditor) - 类 中的方法cn.hutool.poi.excel.reader.BeanSheetReader
设置单元格值处理逻辑
当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
setCellErrorValue(byte) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellFormula(String) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellStyle(CellStyle) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellType(CellType) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellValue(Cell, Object, StyleSet, boolean) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
setCellValue(Cell, Object, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
setCellValue(Cell, Object) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
setCellValue(double) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellValue(Date) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellValue(LocalDateTime) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellValue(Calendar) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellValue(RichTextString) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellValue(String) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setCellValue(boolean) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setColor(CellStyle, IndexedColors, FillPatternType) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
给cell设置颜色
setColor(CellStyle, short, FillPatternType) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
给cell设置颜色
setColumnStyle(int, CellStyle) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置列的默认样式
setColumnStyleIfHasData(int, int, CellStyle) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置整个列的样式 仅对数据单元格设置 write后调用 ExcelWriter.setColumnStyle(int, org.apache.poi.ss.usermodel.CellStyle) 这个方法加的样式会使整列没有数据的单元格也有样式 特别是加背景色时很不美观 且有数据的单元格样式会被StyleSet中的样式覆盖掉
setColumnWidth(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置列宽(单位为一个字符的宽度,例如传入width为10,表示10个字符的宽度)
setComment(Cell, String, String, ClientAnchor) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
为特定单元格添加批注
setCurrentRow(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置当前所在行
setCurrentRowToEnd() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
定位到最后一行的后边,用于追加数据
setDefaultRowHeight(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置默认行高,值为一个点的高度
setDestFile(File) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置写出的目标文件
setDestFile(File) - 类 中的方法cn.hutool.poi.word.Word07Writer
设置写出的目标文件
setFont(short, short, String, boolean) - 类 中的方法cn.hutool.poi.excel.StyleSet
设置全局字体
setFont(Font, boolean) - 类 中的方法cn.hutool.poi.excel.StyleSet
设置全局字体
setFontStyle(Font, short, short, String) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
设置字体样式
setFreezePane(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置窗口冻结,之前冻结的窗口会被覆盖,如果rowSplit为0表示取消冻结
setFreezePane(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置窗口冻结,之前冻结的窗口会被覆盖,如果colSplit和rowSplit为0表示取消冻结
setHeaderAlias(Map<String, String>) - 类 中的方法cn.hutool.poi.excel.ExcelBase
设置标题行的别名Map
setHeaderAlias(Map<String, String>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
 
setHeaderAlias(Map<String, String>) - 类 中的方法cn.hutool.poi.excel.reader.AbstractSheetReader
设置标题行的别名Map
setHeaderAlias(Map<String, String>) - 类 中的方法cn.hutool.poi.excel.reader.BeanSheetReader
设置标题行的别名Map
setHeaderOrFooter(String, Align, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置Excel页眉或页脚
setHyperlink(Hyperlink) - 类 中的方法cn.hutool.poi.excel.cell.NullCell
 
setIgnoreEmptyRow(boolean) - 类 中的方法cn.hutool.poi.excel.ExcelReader
设置是否忽略空行
setIgnoreEmptyRow(boolean) - 类 中的方法cn.hutool.poi.excel.reader.AbstractSheetReader
设置是否忽略空行
setIgnoreEmptyRow(boolean) - 类 中的方法cn.hutool.poi.excel.reader.BeanSheetReader
设置是否忽略空行
setMergedRegionStyle(Cell, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
设置合并单元格样式,如果不是则不设置
setOnlyAlias(boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置是否只保留别名中的字段值,如果为true,则不设置alias的字段将不被输出,false表示原样输出
setRowHandler(RowHandler) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
设置行处理器
setRowHandler(RowHandler) - 类 中的方法cn.hutool.poi.excel.sax.SheetDataSaxHandler
设置行处理器
setRowHeight(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置行高,值为一个点的高度
setRowStyle(int, CellStyle) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置行样式
setRowStyleIfHasData(int, CellStyle) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
对数据行整行加自定义样式 仅对数据单元格设置 write后调用 ExcelWriter.setRowStyle(int, org.apache.poi.ss.usermodel.CellStyle) 这个方法加的样式会使整行没有数据的单元格也有样式 特别是加背景色时很不美观 且有数据的单元格样式会被StyleSet中的样式覆盖掉
setSheet(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之。
setSheet(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之(命名为默认)
在读取中,此方法用于切换读取的sheet,在写出时,此方法用于新建或者切换sheet
setSheet(Sheet) - 类 中的方法cn.hutool.poi.excel.ExcelBase
设置自定义Sheet
setSheet(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
 
setSheet(String) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
 
setStyle(CellStyle, String) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置某个单元格的样式
此方法用于多个单元格共享样式的情况
可以调用ExcelBase.getOrCreateCellStyle(int, int) 方法创建或取得一个样式对象。
setStyle(CellStyle, int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置某个单元格的样式
此方法用于多个单元格共享样式的情况
可以调用ExcelBase.getOrCreateCellStyle(int, int) 方法创建或取得一个样式对象。
setStyleSet(StyleSet) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置样式集,如果不使用样式,传入null
setValue(Cell) - 接口 中的方法cn.hutool.poi.excel.cell.CellSetter
自定义单元格值设置,同时可以设置单元格样式、格式等信息
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.FormulaCellValue
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.BooleanCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.CalendarCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.CharSequenceCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.DateCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.HyperlinkCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.NullCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.NumberCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.RichTextCellSetter
 
setValue(Cell) - 类 中的方法cn.hutool.poi.excel.cell.setters.TemporalAccessorCellSetter
 
setWrapText() - 类 中的方法cn.hutool.poi.excel.StyleSet
设置单元格文本自动换行
setX(int) - 类 中的方法cn.hutool.poi.excel.cell.CellLocation
 
setY(int) - 类 中的方法cn.hutool.poi.excel.cell.CellLocation
 
sharedStrings - 类 中的变量cn.hutool.poi.excel.sax.SheetDataSaxHandler
 
sheet - 类 中的变量cn.hutool.poi.excel.ExcelBase
Excel中对应的Sheet
SHEET_NAME_PREFIX - 接口 中的静态变量cn.hutool.poi.excel.sax.ExcelSaxReader
 
SheetDataSaxHandler - cn.hutool.poi.excel.sax中的类
sheetData标签内容读取处理器 <sheetData></sheetData>
SheetDataSaxHandler(RowHandler) - 类 的构造器cn.hutool.poi.excel.sax.SheetDataSaxHandler
 
sheetIndex - 类 中的变量cn.hutool.poi.excel.sax.SheetDataSaxHandler
 
SheetReader<T> - cn.hutool.poi.excel.reader中的接口
Excel Sheet读取接口,通过实现此接口,将Sheet中的数据读取为不同类型。
SheetRidReader - cn.hutool.poi.excel.sax中的类
在Sax方式读取Excel时,读取sheet标签中sheetId和rid的对应关系,类似于: <sheet name="Sheet6" sheetId="4" r:id="rId6"/> 读取结果为: {"4": "6"}
SheetRidReader() - 类 的构造器cn.hutool.poi.excel.sax.SheetRidReader
 
startElement(String, String, String, Attributes) - 类 中的方法cn.hutool.poi.excel.sax.SheetDataSaxHandler
读到一个xml开始标签时的回调处理方法
startElement(String, String, String, Attributes) - 类 中的方法cn.hutool.poi.excel.sax.SheetRidReader
 
startRowIndex - 类 中的变量cn.hutool.poi.excel.reader.AbstractSheetReader
读取起始行(包含,从0开始计数)
startRowIndex - 类 中的变量cn.hutool.poi.excel.sax.handler.AbstractRowHandler
读取起始行(包含,从0开始计数)
StyleSet - cn.hutool.poi.excel中的类
样式集合,此样式集合汇集了整个工作簿的样式,用于减少样式的创建和冗余
StyleSet(Workbook) - 类 的构造器cn.hutool.poi.excel.StyleSet
构造
stylesTable - 类 中的变量cn.hutool.poi.excel.sax.SheetDataSaxHandler
 
StyleUtil - cn.hutool.poi.excel.style中的类
Excel样式工具类
StyleUtil() - 类 的构造器cn.hutool.poi.excel.style.StyleUtil
 

T

TableUtil - cn.hutool.poi.word中的类
Word中表格相关工具
TableUtil() - 类 的构造器cn.hutool.poi.word.TableUtil
 
TemporalAccessorCellSetter - cn.hutool.poi.excel.cell.setters中的类
TemporalAccessor 值单元格设置器
toLocation(String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
将Excel中地址标识符(例如A11,B5)等转换为行列表示
例如:A11 -》 x:0,y:10,B5-》x:1,y:4
toString() - 类 中的方法cn.hutool.poi.excel.cell.CellLocation
 
toString() - 类 中的方法cn.hutool.poi.excel.cell.FormulaCellValue
 
TrimEditor - cn.hutool.poi.excel.editors中的类
去除String类型的单元格值两边的空格
TrimEditor() - 类 的构造器cn.hutool.poi.excel.editors.TrimEditor
 

V

valueOf(String) - 枚举 中的静态方法cn.hutool.poi.excel.sax.AttributeName
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.poi.excel.sax.CellDataType
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.poi.excel.sax.ElementName
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.poi.excel.style.Align
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.poi.word.PicType
返回带有指定名称的该类型的枚举常量。
values() - 枚举 中的静态方法cn.hutool.poi.excel.sax.AttributeName
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.poi.excel.sax.CellDataType
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.poi.excel.sax.ElementName
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.poi.excel.style.Align
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.poi.word.PicType
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

W

Word07Writer - cn.hutool.poi.word中的类
Word docx生成器
Word07Writer() - 类 的构造器cn.hutool.poi.word.Word07Writer
 
Word07Writer(File) - 类 的构造器cn.hutool.poi.word.Word07Writer
构造
Word07Writer(XWPFDocument) - 类 的构造器cn.hutool.poi.word.Word07Writer
构造
Word07Writer(XWPFDocument, File) - 类 的构造器cn.hutool.poi.word.Word07Writer
构造
WordUtil - cn.hutool.poi.word中的类
Word工具类
WordUtil() - 类 的构造器cn.hutool.poi.word.WordUtil
 
workbook - 类 中的变量cn.hutool.poi.excel.ExcelBase
工作簿
WorkbookUtil - cn.hutool.poi.excel中的类
Excel工作簿Workbook相关工具类
WorkbookUtil() - 类 的构造器cn.hutool.poi.excel.WorkbookUtil
 
write(Iterable<?>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动增加
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式
默认的,当当前行号为0时,写出标题(如果为Map或Bean),否则不写标题 data中元素支持的类型有: 1.
write(Iterable<?>, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动增加
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式 data中元素支持的类型有: 1.
write(Iterable<?>, Comparator<String>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动增加
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式
data中元素支持的类型有: 1.
writeBook(Workbook, OutputStream) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
将Excel Workbook刷出到输出流,不关闭流
writeCellValue(String, Object) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
给指定单元格赋值,使用默认单元格样式,默认不是Header
writeCellValue(String, Object, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
给指定单元格赋值,使用默认单元格样式
writeCellValue(int, int, Object) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
给指定单元格赋值,使用默认单元格样式,默认不是Header
writeCellValue(int, int, Object, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
给指定单元格赋值,使用默认单元格样式
writeCol(Map<?, ? extends Iterable<?>>, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
从第1列开始按列写入数据(index 从0开始)
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式
writeCol(Map<?, ? extends Iterable<?>>, int, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
从指定列开始按列写入数据(index 从0开始)
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式
writeCol(Object, Iterable<?>, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
为第一列写入数据
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式
writeCol(Object, int, Iterable<?>, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
为第指定列写入数据
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式
writeHeadRow(Iterable<?>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出一行标题数据
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式
writeImg(File, int, int, int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中 / 默认图片类型png / 默认的起始坐标和结束坐标都为0
writeImg(File, int, int, int, int, int, int, int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中 / 默认图片类型png
writeImg(File, int, int, int, int, int, int, int, int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中
writeImg(byte[], int, int, int, int, int, int, int, int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出数据,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中
writeRow(Object, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出一行,根据rowBean数据类型不同,写出情况如下: 1、如果为Iterable,直接写出一行 2、如果为Map,isWriteKeyAsHead为true写出两行,Map的keys做为一行,values做为第二行,否则只写出一行values 3、如果为Bean,转为Map写出,isWriteKeyAsHead为true写出两行,Map的keys做为一行,values做为第二行,否则只写出一行values
writeRow(Map<?, ?>, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
将一个Map写入到Excel,isWriteKeyAsHead为true写出两行,Map的keys做为一行,values做为第二行,否则只写出一行values
如果rowMap为空(包括null),则写出空行
writeRow(Iterable<?>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出一行数据
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认样式,可使用ExcelWriter.getCellStyle()方法调用后自定义默认样式
writeRow(Row, Iterable<?>) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
写一行数据,无样式,非标题
writeRow(Row, Iterable<?>, StyleSet, boolean) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
写一行数据
writeRow(XWPFTableRow, Object, boolean) - 类 中的静态方法cn.hutool.poi.word.TableUtil
写一行数据
writeRow(XWPFTableRow, Map<?, ?>, boolean) - 类 中的静态方法cn.hutool.poi.word.TableUtil
写行数据
writeRow(XWPFTableRow, Iterable<?>) - 类 中的静态方法cn.hutool.poi.word.TableUtil
写行数据
writeSecHeadRow(Iterable<?>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出复杂标题的第二行标题数据
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式 此方法的逻辑是:将一行数据写出到当前行,遇到已存在的单元格跳过,不存在的创建并赋值。
writeTable(XWPFTable, Iterable<?>) - 类 中的静态方法cn.hutool.poi.word.TableUtil
为table填充数据

X

XLS_CONTENT_TYPE - 类 中的静态变量cn.hutool.poi.excel.ExcelUtil
xls的ContentType
XLSX_CONTENT_TYPE - 类 中的静态变量cn.hutool.poi.excel.ExcelUtil
xlsx的ContentType
A B C D E F G H I L M N O P R S T V W X 
跳过导航链接

Copyright © 2023. All rights reserved.