A B C D E F G H I M N O P R S T V W 

A

AbstractExcelSaxReader<T> - cn.hutool.poi.excel.sax中的类
抽象的Sax方式Excel读取器,提供一些共用方法
AbstractExcelSaxReader() - 类 的构造器cn.hutool.poi.excel.sax.AbstractExcelSaxReader
 
addHeaderAlias(String, String) - 类 中的方法cn.hutool.poi.excel.ExcelReader
增加标题别名
addHeaderAlias(String, String) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
增加标题别名
addTable(Iterable<?>) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加表格数据
addText(Font, String...) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加一个段落
addText(ParagraphAlignment, Font, String...) - 类 中的方法cn.hutool.poi.word.Word07Writer
增加一个段落
Align - cn.hutool.poi.excel.style中的枚举
对齐方式枚举
autoSizeColumn(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置某列为自动宽度,不考虑合并单元格
此方法必须在指定列数据完全写出后调用才有效。
autoSizeColumn(int, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置某列为自动宽度
此方法必须在指定列数据完全写出后调用才有效。
autoSizeColumnAll() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置所有列为自动宽度,不考虑合并单元格
此方法必须在指定列数据完全写出后调用才有效。

B

BigExcelWriter - cn.hutool.poi.excel中的类
大数据量Excel写出
BigExcelWriter() - 类 的构造器cn.hutool.poi.excel.BigExcelWriter
构造,默认生成xls格式的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(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()方法写出到文件

C

CELL_FILL_CHAR - 类 中的静态变量cn.hutool.poi.excel.sax.ExcelSaxUtil
 
CellDataType - cn.hutool.poi.excel.sax中的枚举
单元格数据类型枚举
CellEditor - cn.hutool.poi.excel.cell中的接口
单元格编辑器接口
cellStyle - 类 中的变量cn.hutool.poi.excel.StyleSet
默认样式
cellStyleForDate - 类 中的变量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.Excel07SaxReader
s标签结束的回调处理方法
checkPoiImport() - 类 中的静态方法cn.hutool.poi.PoiChecker
检查POI包的引入情况
clearHeaderAlias() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
清空标题别名,key为Map中的key,value为别名
cloneCellStyle(Cell, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
克隆新的CellStyle
cloneCellStyle(Workbook, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
克隆新的CellStyle
close() - 类 中的方法cn.hutool.poi.excel.BigExcelWriter
 
close() - 类 中的方法cn.hutool.poi.excel.ExcelBase
关闭工作簿
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
close() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
关闭工作簿
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
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.editors - 程序包 cn.hutool.poi.excel.editors
单元格值编辑器,内部使用
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.word - 程序包 cn.hutool.poi.word
POI中对Word操作封装
colNameToIndex(String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
根据表元的列名转换为列号
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(File) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿
createBook(File, String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿,只读模式
createBook(InputStream, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿
createBook(InputStream, String, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载工作簿
createBook(boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
根据文件类型创建新的工作簿,文件路径
createBookForWriter(File) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建工作簿,用于Excel写出 1. excelFile为null时直接返回一个空的工作簿,默认xlsx格式 2.
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
创建默认头部样式
createStyleForCell(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
createSXSSFBook(String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿
createSXSSFBook(File) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿
createSXSSFBook(File, String) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿,只读模式
createSXSSFBook(InputStream, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿
createSXSSFBook(InputStream, String, boolean) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建或加载SXSSFWorkbook工作簿
createSXSSFBook() - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建SXSSFWorkbook,用于大批量数据写出
createSXSSFBook(int) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
创建SXSSFWorkbook,用于大批量数据写出
createTable(XWPFDocument) - 类 中的静态方法cn.hutool.poi.word.TableUtil
创建空表,只有一行
createTable(XWPFDocument, Iterable<?>) - 类 中的静态方法cn.hutool.poi.word.TableUtil
创建表格并填充数据

D

DEFAULT_WINDOW_SIZE - 类 中的静态变量cn.hutool.poi.excel.BigExcelWriter
 
destFile - 类 中的变量cn.hutool.poi.excel.ExcelWriter
目标文件
destFile - 类 中的变量cn.hutool.poi.word.Word07Writer
目标文件
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
 
endDocument() - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
endElement(String, String, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
标签结束的回调处理方法
endPrefixMapping(String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
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
构造
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(File, int) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelReader(File, String) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelReader(InputStream, int, boolean) - 类 的构造器cn.hutool.poi.excel.ExcelReader
构造
ExcelReader(InputStream, String, boolean) - 类 的构造器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工具类
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() - 类 中的方法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中的类
公式类型的值
FormulaCellValue(String) - 类 的构造器cn.hutool.poi.excel.cell.FormulaCellValue
 

G

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
getCell(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取指定坐标单元格,单元格不存在时返回null
getCell(int, int, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取指定坐标单元格,如果isCreateIfNotExist为false,则在单元格不存在时返回null
getCellStyle() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取单元格样式,获取样式后可自定义样式
getCellStyle() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取常规单元格样式,获取后可以定义整体头部样式
getCellStyleForDate() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取日期单元格样式,获取后可以定义整体头部样式
getCellStyleForNumber() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取数字(带小数点)单元格样式,获取后可以定义整体头部样式
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
getCurrentRow() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获得当前行
getDataValue(CellDataType, String, SharedStringsTable, String) - 类 中的静态方法cn.hutool.poi.excel.sax.ExcelSaxUtil
根据数据类型获取数据
getDoc() - 类 中的方法cn.hutool.poi.word.Word07Writer
获取XWPFDocument
getExtractor() - 类 中的方法cn.hutool.poi.excel.ExcelReader
获取 ExcelExtractor 对象
getHeadCellStyle() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取头部样式,获取样式后可自定义样式
getHeadCellStyle() - 类 中的方法cn.hutool.poi.excel.StyleSet
获取头部样式,获取后可以定义整体头部样式
getHeaderAlias() - 类 中的方法cn.hutool.poi.excel.ExcelReader
获得标题行的别名Map
getName() - 枚举 中的方法cn.hutool.poi.excel.sax.CellDataType
获取对应类型的属性值
getOrCreateCell(Row, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
获取已有行或创建新行
getOrCreateCell(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取或创建指定坐标单元格
getOrCreateCell(XWPFTableRow, int) - 类 中的静态方法cn.hutool.poi.word.TableUtil
获取或创建新单元格
存在则直接返回,不存在创建新的单元格
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中已经存在,则获取之,否则创建之
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(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, boolean) - 类 中的静态方法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, int, boolean) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
getReader(InputStream, String) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
读取结束自动关闭流
getReader(InputStream, String, boolean) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
获取Excel读取器,通过调用ExcelReader的read或readXXX方法读取Excel内容
getRowCount() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取总行数,计算方法为: 最后一行序号 + 1
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
获取表名列表
getSheets() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取此工作簿所有Sheet表
getStyleSet() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
获取样式集,样式集可以自定义包括:
1.
getValue() - 接口 中的方法cn.hutool.poi.excel.cell.CellValue
获取单元格值
getValue() - 类 中的方法cn.hutool.poi.excel.cell.FormulaCellValue
 
getWorkbook() - 类 中的方法cn.hutool.poi.excel.ExcelBase
获取Workbook
getWriter() - 类 中的方法cn.hutool.poi.excel.ExcelReader
获取Excel写出器
在读取Excel并做一定编辑后,获取写出器写出
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

H

handle(int, int, List<Object>) - 接口 中的方法cn.hutool.poi.excel.sax.handler.RowHandler
处理一行数据
headCellStyle - 类 中的变量cn.hutool.poi.excel.StyleSet
标题样式

I

ignorableWhitespace(char[], int, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
indexToColName(int) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
将Sheet列号变为列名
isClosed - 类 中的变量cn.hutool.poi.excel.ExcelBase
是否被关闭
isClosed - 类 中的变量cn.hutool.poi.word.Word07Writer
是否被关闭
isEmpty(Sheet) - 类 中的静态方法cn.hutool.poi.excel.WorkbookUtil
sheet是否为空
isIgnoreEmptyRow() - 类 中的方法cn.hutool.poi.excel.ExcelReader
是否忽略空行
isMergedRegion(Sheet, int, int) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
判断指定的单元格是否是合并单元格
isXls(InputStream) - 类 中的静态方法cn.hutool.poi.excel.ExcelFileUtil
是否为XLS格式的Excel文件(HSSF)
XLS文件主要用于Excel 97~2003创建
isXlsx(InputStream) - 类 中的静态方法cn.hutool.poi.excel.ExcelFileUtil
是否为XLSX格式的Excel文件(XSSF)
XLSX文件主要用于Excel 2007+创建

M

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
合并某行的单元格,并写入对象到单元格
如果写到单元格中的内容非null,行号自动+1,否则当前行号不变
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式
mergingCells(Sheet, int, int, int, int, CellStyle) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
合并单元格,可以根据设置的值来合并行和列

N

NO_POI_ERROR_MSG - 类 中的静态变量cn.hutool.poi.PoiChecker
没有引入POI的错误消息
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
类型字符串转为枚举

P

passCurrentRow() - 类 中的方法cn.hutool.poi.excel.ExcelWriter
跳过当前行
passRows(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
跳过指定行数
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(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.poi.exceptions.POIException
 
processingInstruction(String, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
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, 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(String) - 类 中的方法cn.hutool.poi.excel.sax.AbstractExcelSaxReader
 
read(File) - 类 中的方法cn.hutool.poi.excel.sax.AbstractExcelSaxReader
 
read(InputStream) - 类 中的方法cn.hutool.poi.excel.sax.AbstractExcelSaxReader
 
read(String, int) - 类 中的方法cn.hutool.poi.excel.sax.AbstractExcelSaxReader
 
read(File, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
 
read(InputStream, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
 
read(POIFSFileSystem, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel03SaxReader
读取
read(File, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
read(InputStream, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
read(OPCPackage, int) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
开始读取Excel,Sheet编号从0开始计数
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(File, int) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel
read(InputStream, int) - 接口 中的方法cn.hutool.poi.excel.sax.ExcelSaxReader
开始读取Excel,读取结束后并不关闭流
read03BySax(InputStream, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
Sax方式读取Excel03
read03BySax(File, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
Sax方式读取Excel03
read03BySax(String, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
Sax方式读取Excel03
read07BySax(InputStream, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
Sax方式读取Excel07
read07BySax(File, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
Sax方式读取Excel07
read07BySax(String, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
Sax方式读取Excel07
readAll() - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取Excel为Map的列表,读取所有行,默认第一行做为标题,数据从第二行开始
Map表示一行,标题为key,单元格内容为value
readAll(Class<T>) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取Excel为Bean的列表,读取所有行,默认第一行做为标题,数据从第二行开始
readAsText(boolean) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取为文本格式
使用ExcelExtractor 提取Excel内容
readBySax(String, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readBySax(File, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readBySax(InputStream, int, RowHandler) - 类 中的静态方法cn.hutool.poi.excel.ExcelUtil
通过Sax方式读取Excel,同时支持03和07格式
readCellValue(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取某个单元格的值
readRow(int) - 类 中的方法cn.hutool.poi.excel.ExcelReader
读取某一行数据
readRow(Row, CellEditor) - 类 中的静态方法cn.hutool.poi.excel.RowUtil
读取一行
removeHeaderAlias(String) - 类 中的方法cn.hutool.poi.excel.ExcelReader
去除标题别名
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
RowHandler - cn.hutool.poi.excel.sax.handler中的接口
Sax方式读取Excel行处理器
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文本对齐样式
setBackgroundColor(IndexedColors, boolean) - 类 中的方法cn.hutool.poi.excel.StyleSet
设置单元格背景样式
setBorder(CellStyle, BorderStyle, IndexedColors) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
设置cell的四个边框粗细和颜色
setBorder(BorderStyle, IndexedColors) - 类 中的方法cn.hutool.poi.excel.StyleSet
定义所有单元格的边框类型
setCellEditor(CellEditor) - 类 中的方法cn.hutool.poi.excel.ExcelReader
设置单元格值处理逻辑
当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
setCellValue(Cell, Object, StyleSet, boolean) - 类 中的静态方法cn.hutool.poi.excel.cell.CellUtil
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
setColor(CellStyle, IndexedColors, FillPatternType) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
给cell设置颜色
setColor(CellStyle, short, FillPatternType) - 类 中的静态方法cn.hutool.poi.excel.style.StyleUtil
给cell设置颜色
setColumnWidth(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置列宽(单位为一个字符的宽度,例如传入width为10,表示10个字符的宽度)
setCurrentRow(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置当前所在行
setDestFile(File) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置写出的目标文件
setDestFile(File) - 类 中的方法cn.hutool.poi.word.Word07Writer
设置写出的目标文件
setDocumentLocator(Locator) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
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
设置字体样式
setHeaderAlias(Map<String, String>) - 类 中的方法cn.hutool.poi.excel.ExcelReader
设置标题行的别名Map
setHeaderAlias(Map<String, String>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置标题别名,key为Map中的key,value为别名
setHeaderOrFooter(String, Align, boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置Excel页眉或页脚
setIgnoreEmptyRow(boolean) - 类 中的方法cn.hutool.poi.excel.ExcelReader
设置是否忽略空行
setOnlyAlias(boolean) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置是否只保留别名中的字段值,如果为true,则不设置alias的字段将不被输出,false表示原样输出
setRowHandler(RowHandler) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
设置行处理器
setRowHeight(int, int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置行高,值为一个点的高度
setSheet(String) - 类 中的方法cn.hutool.poi.excel.ExcelBase
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之。
setSheet(int) - 类 中的方法cn.hutool.poi.excel.ExcelBase
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之(命名为默认)
在读取中,此方法用于切换读取的sheet,在写出时,此方法用于新建或者切换sheet
setSheet(int) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
 
setSheet(String) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
 
setStyleSet(StyleSet) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
设置样式集,如果不使用样式,传入null
setWrapText() - 类 中的方法cn.hutool.poi.excel.StyleSet
设置单元格文本自动换行
sheet - 类 中的变量cn.hutool.poi.excel.ExcelBase
Excel中对应的Sheet
skippedEntity(String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
startDocument() - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
?
startElement(String, String, String, Attributes) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
读到一个xml开始标签时的回调处理方法
startPrefixMapping(String, String) - 类 中的方法cn.hutool.poi.excel.sax.Excel07SaxReader
 
StyleSet - cn.hutool.poi.excel中的类
样式集合,此样式集合汇集了整个工作簿的样式,用于减少样式的创建和冗余
StyleSet(Workbook) - 类 的构造器cn.hutool.poi.excel.StyleSet
构造
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
 
TrimEditor - cn.hutool.poi.excel.editors中的类
去除String类型的单元格值两边的空格
TrimEditor() - 类 的构造器cn.hutool.poi.excel.editors.TrimEditor
 

V

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

W

Word07Writer - cn.hutool.poi.word中的类
Word生成器
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(int, int, Object) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
给指定单元格赋值,使用默认单元格样式
writeHeadRow(Iterable<?>) - 类 中的方法cn.hutool.poi.excel.ExcelWriter
写出一行标题数据
本方法只是将数据写入Workbook中的Sheet,并不写出到文件
写出的起始行为当前行号,可使用ExcelWriter.getCurrentRow()方法调用,根据写出的的行数,当前行号自动+1
样式为默认标题样式,可使用ExcelWriter.getHeadCellStyle()方法调用后自定义默认样式
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<?>, 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
写行数据
A B C D E F G H I M N O P R S T V W 

Copyright © 2019. All rights reserved.