- CalendarCellSetter - Class in org.dromara.hutool.poi.excel.cell.setters
-
- CELL_FILL_CHAR - Static variable in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
填充字符串
- CellBorderStyle - Class in org.dromara.hutool.poi.excel.style
-
单元格边框样式和颜色封装,边框按照“上右下左”的顺序定义,与CSS一致
- CellBorderStyle() - Constructor for class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
- CellDataType - Enum in org.dromara.hutool.poi.excel.sax
-
单元格数据类型枚举
- CellEditor - Interface in org.dromara.hutool.poi.excel.cell.editors
-
单元格编辑器接口
在读取Excel值时,有时我们需要针对所有单元格统一处理结果值(如null转默认值)的情况,实现接口并调用
reader.setCellEditor()设置编辑器
此接口可完成以下功能:
对单元格进行编辑,如修改样式等。
- cellEditor - Variable in class org.dromara.hutool.poi.excel.ExcelConfig
-
单元格值处理接口
- cellRangeAddress - Variable in class org.dromara.hutool.poi.excel.reader.sheet.AbstractSheetReader
-
- CellRangeUtil - Class in org.dromara.hutool.poi.excel.cell
-
CellRangeAddress 工具类
CellRangeAddress 表示表格的一个区域,通过定义起始行和列,以及结束行和列,圈定范围,如设置合并单元格等。
- CellRangeUtil() - Constructor for class org.dromara.hutool.poi.excel.cell.CellRangeUtil
-
- CellReferenceUtil - Class in org.dromara.hutool.poi.excel.cell
-
单元格位置CellReference工具类,提供包括行号转行名称、列号转列名称等功能。
- CellReferenceUtil() - Constructor for class org.dromara.hutool.poi.excel.cell.CellReferenceUtil
-
- CellSetter - Interface in org.dromara.hutool.poi.excel.cell.setters
-
单元格值自定义设置器,主要用于Excel数据导出,用户通过自定义此接口,实现可定制化的单元格值设定
- CellSetterFactory - Class in org.dromara.hutool.poi.excel.cell.setters
-
- CellSetterFactory() - Constructor for class org.dromara.hutool.poi.excel.cell.setters.CellSetterFactory
-
- CellUtil - Class in org.dromara.hutool.poi.excel.cell
-
Excel表格中单元格工具类
- CellUtil() - Constructor for class org.dromara.hutool.poi.excel.cell.CellUtil
-
- CellValue<T> - Interface in org.dromara.hutool.poi.excel.cell.values
-
抽象的单元格值接口,用于判断不同类型的单元格值
通过自定义的此接口,对于复杂的单元格值类型,可以自定义读取值的类型,如数字、公式等。
- characters(char[], int, int) - Method in class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
- CharSequenceCellSetter - Class in org.dromara.hutool.poi.excel.cell.setters
-
- checkClosed() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
校验Excel是否已经关闭
- checkPoiImport() - Static method in class org.dromara.hutool.poi.PoiChecker
-
检查POI包的引入情况
- childrenMaxRowCount() - Method in class org.dromara.hutool.poi.excel.RowGroup
-
获取子分组最大占用行数
- clearHeaderAlias() - Method in class org.dromara.hutool.poi.excel.ExcelConfig
-
清空标题别名,key为Map中的key,value为别名
- cloneCellStyle(Cell, CellStyle) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
克隆新的CellStyle
- cloneCellStyle(Workbook, CellStyle) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
克隆新的CellStyle
- cloneSheet(int, String, boolean) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
复制当前sheet为新sheet
- close() - Method in class org.dromara.hutool.poi.csv.CsvParser
-
- close() - Method in class org.dromara.hutool.poi.csv.CsvReader
-
- close() - Method in class org.dromara.hutool.poi.csv.CsvWriter
-
- close() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
关闭工作簿
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
- close() - Method in class org.dromara.hutool.poi.excel.writer.BigExcelWriter
-
- close() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
关闭工作簿
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
- close() - Method in class org.dromara.hutool.poi.ofd.OfdWriter
-
- close() - Method in class org.dromara.hutool.poi.word.Word07Writer
-
关闭Word文档
如果用户设定了目标文件,先写出目标文件后给关闭工作簿
- closeWithoutFlush() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
关闭工作簿但是不写出
- closeWithoutFlush() - Method in class org.dromara.hutool.poi.word.Word07Writer
-
关闭Word文档但是不写出
- colNameToIndex(String) - Static method in class org.dromara.hutool.poi.excel.cell.CellReferenceUtil
-
根据表元的列名转换为列号
- ColumnSheetReader - Class in org.dromara.hutool.poi.excel.reader.sheet
-
读取单独一列
- ColumnSheetReader(int, int, int) - Constructor for class org.dromara.hutool.poi.excel.reader.sheet.ColumnSheetReader
-
构造
- commentCharacter - Variable in class org.dromara.hutool.poi.csv.CsvConfig
-
注释符号,用于区分注释行,默认'#'
- CompositeCellValue - Class in org.dromara.hutool.poi.excel.cell.values
-
复合单元格值,用于根据单元格类型读取不同的值
- CompositeCellValue(Cell, CellType, CellEditor) - Constructor for class org.dromara.hutool.poi.excel.cell.values.CompositeCellValue
-
构造
- computeNext() - Method in class org.dromara.hutool.poi.csv.CsvParser
-
- config - Variable in class org.dromara.hutool.poi.excel.ExcelBase
-
Excel配置,此项不为空
- config - Variable in class org.dromara.hutool.poi.excel.reader.sheet.AbstractSheetReader
-
Excel配置
- containsAll(Collection<?>) - Method in class org.dromara.hutool.poi.csv.CsvRow
-
- convertFunc - Variable in class org.dromara.hutool.poi.excel.sax.handler.AbstractRowHandler
-
行数据转换函数
- copyTo(ClientAnchor) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
将当前对象中的值复制到目标对象中
- countNullCell(String, String) - Static method in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
计算两个单元格之间的单元格数目(同一行)
- create(File) - Static method in class org.dromara.hutool.poi.word.DocUtil
-
创建XWPFDocument,如果文件已存在则读取之,否则创建新的
- createBook(String) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿(读写模式)
- createBook(String, boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿
- createBook(File) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿(读写模式)
- createBook(File, boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿
- createBook(File, String) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿(读写模式)
- createBook(File, String, boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿
- createBook(InputStream) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿(只读模式)
- createBook(InputStream, String) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载工作簿(只读模式)
- createBook(boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建新的空白Excel工作簿
- createBookForWriter(File) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建工作簿,用于Excel写出(读写模式)
1. excelFile为null时直接返回一个空的工作簿,默认xlsx格式
2.
- createCellSetter(Object) - Static method in class org.dromara.hutool.poi.excel.cell.setters.CellSetterFactory
-
- createCellStyle(String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
为指定单元格创建样式,返回样式后可以设置样式内容
- createCellStyle(int, int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
为指定单元格创建样式,返回样式后可以设置样式内容
- createCellStyle() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
创建单元格样式
- createCellStyle(Workbook) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
创建单元格样式
- createColumnStyle(int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
创建某一列的样式,返回样式后可以设置样式内容
- createDefaultCellStyle(Workbook) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
创建默认普通单元格样式
1.
- createFont() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
创建字体
- createFont(Workbook, short, short, String) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
创建字体
- createHeadCellStyle(Workbook) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
创建默认头部样式
- createHyperlink(HyperlinkType, String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
创建 Hyperlink,默认内容(标签为链接地址本身)
- createHyperlink(HyperlinkType, String, String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
创建 Hyperlink,默认内容
- createRowStyle(int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
创建某一行的样式,返回样式后可以设置样式内容
- createSaxReader(boolean, RowHandler) - Static method in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
- createSXSSFBook(String) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿(读写模式)
- createSXSSFBook(String, boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿
- createSXSSFBook(File) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿(读写模式)
- createSXSSFBook(File, boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿
- createSXSSFBook(File, String) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿(读写模式)
- createSXSSFBook(File, String, boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿
- createSXSSFBook(InputStream) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿(只读模式)
- createSXSSFBook(InputStream, String) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建或加载SXSSFWorkbook工作簿(只读模式)
- createSXSSFBook() - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建空的SXSSFWorkbook,用于大批量数据写出
- createSXSSFBook(int) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建空的SXSSFWorkbook,用于大批量数据写出
- createSXSSFBook(int, boolean, boolean) - Static method in class org.dromara.hutool.poi.excel.WorkbookUtil
-
创建空的SXSSFWorkbook,用于大批量数据写出
- createTable(XWPFDocument) - Static method in class org.dromara.hutool.poi.word.TableUtil
-
创建空表,只有一行
- createTable(XWPFDocument, Iterable<?>) - Static method in class org.dromara.hutool.poi.word.TableUtil
-
创建表格并填充数据,默认表格
- CsvBaseReader - Class in org.dromara.hutool.poi.csv
-
CSV文件读取器基础类,提供灵活的文件、路径中的CSV读取,一次构造可多次调用读取不同数据,参考:FastCSV
- CsvBaseReader() - Constructor for class org.dromara.hutool.poi.csv.CsvBaseReader
-
构造,使用默认配置项
- CsvBaseReader(CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvBaseReader
-
构造
- CsvConfig<T extends CsvConfig<T>> - Class in org.dromara.hutool.poi.csv
-
CSV基础配置项,此配置项可用于读取和写出CSV,定义了包括字段分隔符、文本包装符等符号
- CsvConfig() - Constructor for class org.dromara.hutool.poi.csv.CsvConfig
-
- CsvData - Class in org.dromara.hutool.poi.csv
-
CSV数据,包括头部信息和行数据,参考:FastCSV
- CsvData(List<String>, List<CsvRow>) - Constructor for class org.dromara.hutool.poi.csv.CsvData
-
构造
- CsvParser - Class in org.dromara.hutool.poi.csv
-
CSV行解析器,参考:FastCSV
- CsvParser(Reader, CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvParser
-
CSV解析器
- CsvParser(Reader, CsvReadConfig, int) - Constructor for class org.dromara.hutool.poi.csv.CsvParser
-
CSV解析器
- CsvReadConfig - Class in org.dromara.hutool.poi.csv
-
CSV读取配置项
- CsvReadConfig() - Constructor for class org.dromara.hutool.poi.csv.CsvReadConfig
-
- CsvReader - Class in org.dromara.hutool.poi.csv
-
CSV文件读取器,参考:FastCSV
- CsvReader() - Constructor for class org.dromara.hutool.poi.csv.CsvReader
-
构造,使用默认配置项
- CsvReader(CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvReader
-
构造
- CsvReader(File, CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvReader
-
- CsvReader(Path, CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvReader
-
- CsvReader(File, Charset, CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvReader
-
构造
- CsvReader(Path, Charset, CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvReader
-
构造
- CsvReader(Reader, CsvReadConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvReader
-
构造
- CsvRow - Class in org.dromara.hutool.poi.csv
-
CSV中一行的表示
- CsvRow(long, Map<String, Integer>, List<String>) - Constructor for class org.dromara.hutool.poi.csv.CsvRow
-
构造
- CsvUtil - Class in org.dromara.hutool.poi.csv
-
CSV工具
- CsvUtil() - Constructor for class org.dromara.hutool.poi.csv.CsvUtil
-
- CsvWriteConfig - Class in org.dromara.hutool.poi.csv
-
CSV写出配置项
- CsvWriteConfig() - Constructor for class org.dromara.hutool.poi.csv.CsvWriteConfig
-
- CsvWriter - Class in org.dromara.hutool.poi.csv
-
CSV数据写出器
- CsvWriter(String) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造,覆盖已有文件(如果存在),默认编码UTF-8
- CsvWriter(File) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造,覆盖已有文件(如果存在),默认编码UTF-8
- CsvWriter(String, Charset) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造,覆盖已有文件(如果存在)
- CsvWriter(File, Charset) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造,覆盖已有文件(如果存在)
- CsvWriter(String, Charset, boolean) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造
- CsvWriter(File, Charset, boolean) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造
- CsvWriter(String, Charset, boolean, CsvWriteConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造
- CsvWriter(File, Charset, boolean, CsvWriteConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造
- CsvWriter(Writer) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造,使用默认配置
- CsvWriter(Writer, CsvWriteConfig) - Constructor for class org.dromara.hutool.poi.csv.CsvWriter
-
构造
- get(int) - Method in class org.dromara.hutool.poi.csv.CsvRow
-
- getAddress() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getAnchorType() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getArrayFormulaRange() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getArrayFormulaRange() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getBigWriter() - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getBigWriter(int) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getBigWriter(String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getBigWriter(File) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getBigWriter(String, String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getBigWriter(File, String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getBooleanCellValue() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getBooleanCellValue() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getBottomColor() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取底边框的颜色。
- getBottomRowIndex(Object) - Method in class org.dromara.hutool.poi.excel.writer.TemplateContext
-
获取当前替换的数据行对应变量的底部索引
此方法用户获取填充行,以便下移填充行后的行
如果为实体单元格,直接填充,无需下移,返回0
如果为
VirtualCell,返回最底部虚拟单元格各行号
- getBottomStyle() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取底边框的样式。
- getByName(String) - Method in class org.dromara.hutool.poi.csv.CsvRow
-
获取标题对应的字段内容
- getCachedAliasComparator() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriteConfig
-
获取单例的别名比较器,比较器的顺序为别名加入的顺序
- getCachedFormulaResultType() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getCachedFormulaResultType() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getCell(Sheet, int, int, boolean) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取指定坐标单元格,如果isCreateIfNotExist为false,则在单元格不存在时返回null
- getCell(Row, int) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
- getCell(String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取指定坐标单元格,单元格不存在时返回null
- getCell(int, int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取指定坐标单元格,单元格不存在时返回null
- getCell(String, boolean) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取指定坐标单元格,如果isCreateIfNotExist为false,则在单元格不存在时返回null
- getCell(int, int, boolean) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取指定坐标单元格,如果isCreateIfNotExist为false,则在单元格不存在时返回null
- getCell(String) - Method in class org.dromara.hutool.poi.excel.writer.TemplateContext
-
获取变量对应的当前单元格,列表变量以开头
- getCellComment() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getCellComment() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getCellEditor() - Method in class org.dromara.hutool.poi.excel.ExcelConfig
-
获取单元格值处理器
- getCellFormula() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getCellFormula() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getCellRangeAddress(Sheet, String) - Static method in class org.dromara.hutool.poi.excel.cell.CellRangeUtil
-
获取合并单元格CellRangeAddress,如果不是返回null
- getCellRangeAddress(Cell) - Static method in class org.dromara.hutool.poi.excel.cell.CellRangeUtil
-
获取合并单元格CellRangeAddress,如果不是返回null
- getCellRangeAddress(Sheet, int, int) - Static method in class org.dromara.hutool.poi.excel.cell.CellRangeUtil
-
获取合并单元格CellRangeAddress,如果不是返回null
- getCellStyle() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getCellStyle() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getCellStyle() - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
获取常规单元格样式,获取后可以定义整体头部样式
- getCellStyleForDate() - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
获取日期单元格样式,获取后可以定义整体日期样式
- getCellStyleForHyperlink() - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
获取链接单元格样式,获取后可以定义整体链接样式
- getCellStyleForNumber() - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
获取数字(带小数点)单元格样式,获取后可以定义整体数字样式
- getCellType() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getCellType() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getCellValue(Cell) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取单元格值
- getCellValue(Cell, boolean) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取单元格值
- getCellValue(Cell, CellEditor) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取单元格值
- getCellValue(Cell, CellType, boolean) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取单元格值
- getCellValue(Cell, CellType, CellEditor) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取单元格值
如果单元格值为数字格式,则判断其格式中是否有小数部分,无则返回Long类型,否则返回Double类型
- getChildren() - Method in class org.dromara.hutool.poi.excel.RowGroup
-
获取子分组
- getCol1() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getCol2() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getColumnCount() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取第一行总列数,计算方法为:
最后一列序号 + 1
- getColumnCount(int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取总列数,计算方法为:
最后一列序号 + 1
- getColumnIndex() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getColumnIndex() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getConfig() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取Excel配置
- getContentType() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取Content-Type头对应的值,可以通过调用以下方法快速设置下载Excel的头信息:
response.setContentType(excelWriter.getContentType());
- getCurrentRow() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
获得当前行
- getCurrentRow() - Method in class org.dromara.hutool.poi.excel.writer.SheetDataWriter
-
获得当前行
- getDataValue(CellDataType, String, SharedStrings, String) - Static method in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
根据数据类型获取数据
- getDateCellValue() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getDateCellValue() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getDateValue(String) - Static method in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
获取日期
- getDateValue(double) - Static method in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
获取日期
- getDoc() - Method in class org.dromara.hutool.poi.word.Word07Writer
-
获取XWPFDocument
- getDx1() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getDx2() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getDy1() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getDy2() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getErrorCellValue() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getErrorCellValue() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getExtractor(Workbook) - Static method in class org.dromara.hutool.poi.excel.ExcelExtractorUtil
-
获取 ExcelExtractor 对象
- getExtractor() - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
获取 ExcelExtractor 对象
- getFieldMap() - Method in class org.dromara.hutool.poi.csv.CsvRow
-
获取标题与字段值对应的Map
- getFillColor() - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
获取填充颜色,null表示不填充
- getFirst() - Method in class org.dromara.hutool.poi.excel.cell.MergedCell
-
获取第一个单元格,即左上角的单元格
- getFirstCellOfMerged(Cell) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取合并单元格中的第一个单元格
传入的cell可以是合并单元格范围内的任意一个单元格
- getFormat(Workbook, String) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
创建数据格式并获取格式
- getHeadCellStyle() - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
获取头部样式,获取后可以定义整体头部样式
- getHeader() - Method in class org.dromara.hutool.poi.csv.CsvData
-
获取头信息列表,如果无头信息为Null,返回列表为只读列表
- getHeader() - Method in class org.dromara.hutool.poi.csv.CsvParser
-
获取头部字段列表,如果headerLineNo < 0,抛出异常
- getHeaderAlias() - Method in class org.dromara.hutool.poi.excel.ExcelConfig
-
获得标题行的别名Map
- getHyperlink() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getHyperlink() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getImgType(File) - Static method in class org.dromara.hutool.poi.excel.ExcelImgUtil
-
获取图片类型
- getLeftColor() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取左边框的颜色。
- getLeftStyle() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取左边框的样式。
- getLineColor() - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
获取线条颜色
- getLineStyle() - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
获取线条样式
- getLineWidth() - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
获取线条宽度
- getLocalDateTimeCellValue() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getLocalDateTimeCellValue() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getMergedCell(Sheet, int, int) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取合并单元格
传入的x,y坐标(列行数)可以是合并单元格范围内的任意一个单元格
- getMergedRegion(Sheet, int, int) - Static method in class org.dromara.hutool.poi.excel.SheetUtil
-
获取指定坐标点对应的合并单元格范围
- getName() - Method in class org.dromara.hutool.poi.excel.RowGroup
-
获取分组名称
- getName() - Method in enum org.dromara.hutool.poi.excel.sax.CellDataType
-
获取对应类型的属性值
- getNumberOrDateValue(CellValueRecordInterface, double, FormatTrackingHSSFListener) - Static method in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
在Excel03 sax读取中获取日期或数字类型的结果值
- getNumericCellValue() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getNumericCellValue() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getOrCreateCell(Sheet, int, int) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取或创建指定坐标单元格
- getOrCreateCell(Row, int) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
获取已有单元格或创建新单元格
- getOrCreateCell(String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取或创建指定坐标单元格
- getOrCreateCell(int, int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取或创建指定坐标单元格
- getOrCreateCell(XWPFTableRow, int) - Static method in class org.dromara.hutool.poi.word.TableUtil
-
获取或创建新单元格
存在则直接返回,不存在创建新的单元格
- getOrCreateCellStyle(String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
为指定单元格获取或者创建样式,返回样式后可以设置样式内容
- getOrCreateCellStyle(int, int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
为指定单元格获取或者创建样式,返回样式后可以设置样式内容
- getOrCreateColumnStyle(int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取或创建某一列的样式,返回样式后可以设置样式内容
需要注意,此方法返回行样式,设置背景色在单元格设置值后会被覆盖,需要单独设置其单元格的样式。
- getOrCreateRow(int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取或者创建行
- getOrCreateRow(Sheet, int) - Static method in class org.dromara.hutool.poi.excel.RowUtil
-
获取已有行或创建新行
- getOrCreateRow(XWPFTable, int) - Static method in class org.dromara.hutool.poi.word.TableUtil
-
获取或创建新行
存在则直接返回,不存在创建新的行
- getOrCreateRowStyle(int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取或创建某一行的样式,返回样式后可以设置样式内容
需要注意,此方法返回行样式,设置背景色在单元格设置值后会被覆盖,需要单独设置其单元格的样式。
- getOrCreateSheet(Workbook, String) - Static method in class org.dromara.hutool.poi.excel.SheetUtil
-
获取或者创建sheet表
如果sheet表在Workbook中已经存在,则获取之,否则创建之
- getOrCreateSheet(Workbook, int) - Static method in class org.dromara.hutool.poi.excel.SheetUtil
-
获取或者创建sheet表
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之(命名为默认)
在读取中,此方法用于切换读取的sheet,在写出时,此方法用于新建或者切换sheet
- getOriginalLineNumber() - Method in class org.dromara.hutool.poi.csv.CsvRow
-
获取原始行号,多行情况下为首行行号。
- getPhysicalRowCount() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取有记录的行数,计算方法为:
最后一行序号 - 第一行序号 + 1
- getPicMap(Workbook, int) - Static method in class org.dromara.hutool.poi.excel.ExcelImgUtil
-
获取工作簿指定sheet中图片列表
- getRange() - Method in class org.dromara.hutool.poi.excel.cell.MergedCell
-
获取合并单元格范围
- getReader(CsvReadConfig) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV读取器,调用此方法创建的Reader须自行指定读取的资源
- getReader() - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV读取器,调用此方法创建的Reader须自行指定读取的资源
- getReader(Reader, CsvReadConfig) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV读取器
- getReader(Reader) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV读取器
- getReader(String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
获取Excel读取器,通过调用
ExcelReader的read或readXXX方法读取Excel内容
默认调用第一个sheet
- getReader(File) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
获取Excel读取器,通过调用
ExcelReader的read或readXXX方法读取Excel内容
默认调用第一个sheet
- getReader(String, int) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getReader(String, String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getReader(File, int) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getReader(File, String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getReader(InputStream) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
获取Excel读取器,通过调用
ExcelReader的read或readXXX方法读取Excel内容
默认调用第一个sheet,读取结束自动关闭流
- getReader(InputStream, int) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
获取Excel读取器,通过调用
ExcelReader的read或readXXX方法读取Excel内容
读取结束自动关闭流
- getReader(InputStream, String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
获取Excel读取器,通过调用
ExcelReader的read或readXXX方法读取Excel内容
读取结束自动关闭流
- getResult() - Method in class org.dromara.hutool.poi.excel.cell.values.FormulaCellValue
-
获取结果
- getResultType() - Method in class org.dromara.hutool.poi.excel.cell.values.FormulaCellValue
-
获取结果类型
- getRichStringCellValue() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getRichStringCellValue() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getRidByIndex(int) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
通过sheet的序号获取rid
- getRidByIndexBase0(int) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
通过sheet的序号获取rid
- getRidByName(String) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
根据sheet name获取rid,从1开始
- getRidByNameBase0(String) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
根据sheet name获取rid,从0开始
- getRidBySheetId(int) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
根据sheetId获取rid,从1开始
- getRidBySheetIdBase0(int) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
根据sheetId获取rid,从0开始
- getRightColor() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取右边框的颜色。
- getRightStyle() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取右边框的样式。
- getRow(int) - Method in class org.dromara.hutool.poi.csv.CsvData
-
获取指定行,从0开始
- getRow() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getRow() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getRow1() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getRow2() - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- getRowCount() - Method in class org.dromara.hutool.poi.csv.CsvData
-
总行数
- getRowCount() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取总行数,计算方法为:
最后一行序号 + 1
- getRowIndex() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getRowIndex() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getRows() - Method in class org.dromara.hutool.poi.csv.CsvData
-
获取所有行
- getShapeType() - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
获取形状类型
- getSheet() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getSheet() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getSheet() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取当前Sheet
- getSheetCount() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
返回工作簿表格数
- getSheetIndex() - Method in class org.dromara.hutool.poi.excel.sax.Excel03SaxReader
-
获得Sheet序号,如果处理所有sheet,获得最大的Sheet序号,从0开始
- getSheetName() - Method in class org.dromara.hutool.poi.excel.sax.Excel03SaxReader
-
获得Sheet名,如果处理所有sheet,获得后一个Sheet名,从0开始
- getSheetNames() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取表名列表
- getSheetNames() - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
获取所有sheet名称
- getSheets() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取此工作簿所有Sheet表
- getSpreadsheetVersion() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getStringCellValue() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- getStringCellValue() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- getStyle() - Method in class org.dromara.hutool.poi.excel.RowGroup
-
获取样式
- getStyleFor(CellReference, Object, boolean) - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
- getStyleFor(CellReference, Object, boolean) - Method in interface org.dromara.hutool.poi.excel.style.StyleSet
-
获取单元格样式,可以:
根据单元格位置获取定义不同的样式,如首行、首列、偶数行、偶数列等
根据单元格值获取定义不同的样式,如数字、日期等,也可根据是否为标题行定义独立的样式
- getStyleSet() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
获取样式集,样式集可以自定义包括:
1.
- getTopColor() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取上边框的颜色。
- getTopStyle() - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
获取上边框的样式。
- getType(String) - Static method in class org.dromara.hutool.poi.word.PictureTypeUtil
-
获取图片类型枚举
- getValue() - Method in interface org.dromara.hutool.poi.excel.cell.values.CellValue
-
获取单元格值
- getValue() - Method in class org.dromara.hutool.poi.excel.cell.values.CompositeCellValue
-
- getValue() - Method in class org.dromara.hutool.poi.excel.cell.values.ErrorCellValue
-
- getValue() - Method in class org.dromara.hutool.poi.excel.cell.values.FormulaCellValue
-
- getValue() - Method in class org.dromara.hutool.poi.excel.cell.values.NumericCellValue
-
- getValue() - Method in enum org.dromara.hutool.poi.excel.ExcelImgType
-
获取类型编码
- getValue(Attributes) - Method in enum org.dromara.hutool.poi.excel.sax.AttributeName
-
从属性里列表中获取对应属性值
- getValue() - Method in enum org.dromara.hutool.poi.excel.style.LineStyle
-
获取样式编码
- getWorkbook() - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
获取Workbook
- getWriter(String, Charset) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV生成器(写出器),使用默认配置,覆盖已有文件(如果存在)
- getWriter(File, Charset) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV生成器(写出器),使用默认配置,覆盖已有文件(如果存在)
- getWriter(String, Charset, boolean) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV生成器(写出器),使用默认配置
- getWriter(File, Charset, boolean) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV生成器(写出器),使用默认配置
- getWriter(File, Charset, boolean, CsvWriteConfig) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV生成器(写出器)
- getWriter(Writer) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV生成器(写出器)
- getWriter(Writer, CsvWriteConfig) - Static method in class org.dromara.hutool.poi.csv.CsvUtil
-
获取CSV生成器(写出器)
- getWriter() - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getWriter(boolean) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getWriter(String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getWriter(File) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getWriter(String, String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getWriter(File, String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- getWriter() - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
获取Excel写出器
在读取Excel并做一定编辑后,获取写出器写出,规则如下:
1.
- getWriter() - Static method in class org.dromara.hutool.poi.word.WordUtil
-
创建Word 07格式的生成器
- getWriter(File) - Static method in class org.dromara.hutool.poi.word.WordUtil
-
创建Word 07格式的生成器
- getWriterWithSheet(String) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
- GlobalPoiConfig - Class in org.dromara.hutool.poi
-
POI的全局设置
- GlobalPoiConfig() - Constructor for class org.dromara.hutool.poi.GlobalPoiConfig
-
- read(File) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
读取CSV文件,默认UTF-8编码
- read(File, Charset) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
读取CSV文件
- read(Path) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
读取CSV文件,默认UTF-8编码
- read(Path, Charset) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
读取CSV文件
- read(Reader, boolean) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
从Reader中读取CSV数据,读取后关闭Reader
- read(Reader, boolean, Class<T>) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
从Reader中读取CSV数据并转换为Bean列表,读取后关闭Reader。
- read(String, Class<T>) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
从字符串中读取CSV数据并转换为Bean列表,读取后关闭Reader。
- read(Reader, boolean, SerConsumer<CsvRow>) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
从Reader中读取CSV数据,读取后关闭Reader
- read() - Method in class org.dromara.hutool.poi.csv.CsvReader
-
读取CSV文件,此方法只能调用一次
调用此方法的前提是构造中传入文件路径或Reader
- read(SerConsumer<CsvRow>) - Method in class org.dromara.hutool.poi.csv.CsvReader
-
读取CSV数据,此方法只能调用一次
调用此方法的前提是构造中传入文件路径或Reader
- read() - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet的所有行列数据
- read(int) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet
- read(int, int) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet,此方法会把第一行作为标题行,替换标题别名
- read(int, int, boolean) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet
- read(SerBiConsumer<Cell, Object>) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet,此方法为类流处理方式,当读到指定单元格时,会调用CellEditor接口
用户通过实现此接口,可以更加灵活地处理每个单元格的数据。
- read(int, int, SerBiConsumer<Cell, Object>) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet,此方法为类流处理方式,当读到指定单元格时,会调用CellEditor接口
用户通过实现此接口,可以更加灵活地处理每个单元格的数据。
- read(int, int, int) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取Excel为Map的列表
Map表示一行,标题为key,单元格内容为value
- read(int, int, Class<T>) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取Excel为Bean的列表
- read(int, int, int, Class<T>) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取Excel为Bean的列表
- read(SheetReader<T>) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取数据为指定类型
- read(Sheet) - Method in class org.dromara.hutool.poi.excel.reader.sheet.BeanSheetReader
-
- read(Sheet) - Method in class org.dromara.hutool.poi.excel.reader.sheet.ColumnSheetReader
-
- read(Sheet) - Method in class org.dromara.hutool.poi.excel.reader.sheet.ListSheetReader
-
- read(Sheet) - Method in class org.dromara.hutool.poi.excel.reader.sheet.MapSheetReader
-
- read(Sheet) - Method in interface org.dromara.hutool.poi.excel.reader.sheet.SheetReader
-
读取数据
- read(Sheet) - Method in class org.dromara.hutool.poi.excel.reader.sheet.WalkSheetReader
-
- read(File, String) - Method in class org.dromara.hutool.poi.excel.sax.Excel03SaxReader
-
- read(InputStream, String) - Method in class org.dromara.hutool.poi.excel.sax.Excel03SaxReader
-
- read(POIFSFileSystem, String) - Method in class org.dromara.hutool.poi.excel.sax.Excel03SaxReader
-
读取
- read(File, int) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
- read(File, String) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
- read(InputStream, int) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
- read(InputStream, String) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
- read(OPCPackage, int) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
开始读取Excel,Sheet编号从0开始计数
- read(OPCPackage, String) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
开始读取Excel,Sheet编号从0开始计数
- read(XSSFReader, String) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
开始读取Excel,Sheet编号从0开始计数
- read(File, String) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel
- read(InputStream, String) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel,读取结束后并不关闭流
- read(String) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel,读取所有sheet
- read(File) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel,读取所有sheet
- read(InputStream) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel,读取所有sheet,读取结束后并不关闭流
- read(String, int) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel
- read(String, String) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel
- read(File, int) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel
- read(InputStream, int) - Method in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
开始读取Excel,读取结束后并不关闭流
- read(XSSFReader) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
读取Wordkbook的XML中sheet标签中sheetId和rid的对应关系
- readAll() - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取Excel为Map的列表,读取所有行,默认第一行做为标题,数据从第二行开始
Map表示一行,标题为key,单元格内容为value
- readAll(Class<T>) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取Excel为Bean的列表,读取所有行,默认第一行做为标题,数据从第二行开始
- readAsText(Workbook, boolean) - Static method in class org.dromara.hutool.poi.excel.ExcelExtractorUtil
-
读取为文本格式
使用ExcelExtractor 提取Excel内容
- readAsText(boolean) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取为文本格式
使用ExcelExtractor 提取Excel内容
- readBySax(String, int, RowHandler) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
通过Sax方式读取Excel,同时支持03和07格式
- readBySax(String, String, RowHandler) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
通过Sax方式读取Excel,同时支持03和07格式
- readBySax(File, int, RowHandler) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
通过Sax方式读取Excel,同时支持03和07格式
- readBySax(File, String, RowHandler) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
通过Sax方式读取Excel,同时支持03和07格式
- readBySax(InputStream, int, RowHandler) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
通过Sax方式读取Excel,同时支持03和07格式
- readBySax(InputStream, String, RowHandler) - Static method in class org.dromara.hutool.poi.excel.ExcelUtil
-
通过Sax方式读取Excel,同时支持03和07格式
- readCellValue(int, int) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取某个单元格的值
- readColumn(int, int) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet中指定列
- readColumn(int, int, int) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取工作簿中指定的Sheet中指定列
- readFrom(InputStream, ContentHandler) - Static method in class org.dromara.hutool.poi.excel.sax.ExcelSaxUtil
-
- readFromStr(String) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
从字符串中读取CSV数据
- readFromStr(String, SerConsumer<CsvRow>) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
从字符串中读取CSV数据
- readMapList(Reader, boolean) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
从Reader中读取CSV数据,结果为Map,读取后关闭Reader。
- readRow(int) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReader
-
读取某一行数据
- readRow(Row, CellEditor) - Static method in class org.dromara.hutool.poi.excel.RowUtil
-
读取一行
- readRow(Row, int, int, CellEditor) - Static method in class org.dromara.hutool.poi.excel.RowUtil
-
读取一行
- remove(Cell) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
移除指定单元格
- removeCellComment() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- removeCellComment() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- removeFormula() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- removeFormulaImpl() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- removeHeaderAlias(String) - Method in class org.dromara.hutool.poi.csv.CsvConfig
-
去除标题别名
- removeHeaderAlias(String) - Method in class org.dromara.hutool.poi.excel.ExcelConfig
-
去除标题别名
- removeHeaderAlias(String) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriteConfig
-
- removeHyperlink() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- removeHyperlink() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- removeRow(Row) - Static method in class org.dromara.hutool.poi.excel.RowUtil
-
从工作表中删除指定的行,此方法修复sheet.shiftRows删除行时会拆分合并的单元格的问题
- renameSheet(String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
重命名当前sheet
- renameSheet(String) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
重命名当前sheet
- renameSheet(int, String) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
重命名sheet
- reset() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
重置Writer,包括:
1.
- resetRow() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
重置当前行为0
- resetRow() - Method in class org.dromara.hutool.poi.excel.writer.SheetDataWriter
-
重置当前行为0
- RichTextCellSetter - Class in org.dromara.hutool.poi.excel.cell.setters
-
RichTextString 值单元格设置器
- RID_PREFIX - Static variable in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
sheet r:Id前缀
- RowGroup - Class in org.dromara.hutool.poi.excel
-
分组行
用于标识和写出复杂表头。
- RowGroup(String) - Constructor for class org.dromara.hutool.poi.excel.RowGroup
-
构造
- RowHandler - Interface in org.dromara.hutool.poi.excel.sax.handler
-
Sax方式读取Excel行处理器
- rowHandler - Variable in class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
行处理器
- RowUtil - Class in org.dromara.hutool.poi.excel
-
Excel中的行Row封装工具类
- RowUtil() - Constructor for class org.dromara.hutool.poi.excel.RowUtil
-
- setAlign(HorizontalAlignment, VerticalAlignment) - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
设置cell文本对齐样式
- setAlign(CellStyle, HorizontalAlignment, VerticalAlignment) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
设置cell文本对齐样式
- setAlwaysDelimitText(boolean) - Method in class org.dromara.hutool.poi.csv.CsvWriteConfig
-
设置是否始终使用文本分隔符,文本包装符,默认false,按需添加
- setAlwaysDelimitText(boolean) - Method in class org.dromara.hutool.poi.csv.CsvWriter
-
设置是否始终使用文本分隔符,文本包装符,默认false,按需添加
- setAnchorType(ClientAnchor.AnchorType) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setAsActiveCell() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setAsActiveCell() - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setBackgroundColor(IndexedColors, boolean) - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
设置单元格背景样式
- setBeginLineNo(long) - Method in class org.dromara.hutool.poi.csv.CsvReadConfig
-
设置开始的行(包括),默认0,此处为原始文件行号
- setBlank() - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setBorder(BorderStyle, IndexedColors) - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
定义所有单元格的边框类型
- setBorder(CellStyle, BorderStyle, IndexedColors) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
设置cell的四个边框粗细和颜色
- setBorder(CellStyle, CellBorderStyle) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
设置cell的四个边框粗细和颜色
- setBorderStyle(Sheet, CellRangeAddress, CellBorderStyle) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
根据CellStyle设置指定范围边框样式
- setBorderStyle(Sheet, CellRangeAddress, CellStyle) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
根据CellStyle设置指定范围边框样式
- setBottomColor(Short) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置底边框的颜色。
- setBottomStyle(BorderStyle) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置底边框的样式。
- setCellComment(Comment) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellComment(Comment) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellEditor(CellEditor) - Method in class org.dromara.hutool.poi.excel.ExcelConfig
-
设置单元格值处理逻辑
当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
- setCellErrorValue(byte) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellErrorValue(byte) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellFormula(String) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellFormulaImpl(String) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellStyle(CellStyle) - Method in class org.dromara.hutool.poi.excel.cell.MergedCell
-
设置单元格样式
- setCellStyle(CellStyle) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellStyle(CellStyle) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellType(CellType) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
Deprecated.
- setCellTypeImpl(CellType) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellValue(Cell, Object, StyleSet, boolean, CellEditor) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
- setCellValue(Cell, Object, CellStyle, CellEditor) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
- setCellValue(Cell, Object, CellEditor) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
- setCellValue(Cell, Object) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
设置单元格值
根据传入的styleSet自动匹配样式
当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
- setCellValue(double) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellValue(Date) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellValue(LocalDateTime) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellValue(Calendar) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellValue(RichTextString) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellValue(String) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellValue(boolean) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setCellValue(boolean) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellValueImpl(double) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellValueImpl(Date) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellValueImpl(LocalDateTime) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellValueImpl(Calendar) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellValueImpl(String) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setCellValueImpl(RichTextString) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setChildren(List<RowGroup>) - Method in class org.dromara.hutool.poi.excel.RowGroup
-
设置子分组
- setCol1(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setCol2(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setColor(CellStyle, IndexedColors, FillPatternType) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
给cell设置颜色
- setColor(CellStyle, short, FillPatternType) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
给cell设置颜色(即单元格背景色)
- setColor(XSSFCellStyle, XSSFColor, FillPatternType) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
给cell设置颜色(即单元格背景色)
- setColumnStyle(int, CellStyle) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置列的默认样式
- setColumnStyleIfHasData(int, int, CellStyle) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setColumnWidth(int, int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置列宽(单位为一个字符的宽度,例如传入width为10,表示10个字符的宽度)
- setComment(Cell, String, String) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
为特定单元格添加批注
- setComment(Cell, String, String, ClientAnchor) - Static method in class org.dromara.hutool.poi.excel.cell.CellUtil
-
为特定单元格添加批注
- setCommentCharacter(Character) - Method in class org.dromara.hutool.poi.csv.CsvConfig
-
设置 注释符号,用于区分注释行,null表示忽略注释
- setConfig(C) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
设置Excel配置
- setConfig(ExcelWriteConfig) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setContainsHeader(boolean) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
设置是否首行做为标题行,默认false
- setContainsHeader(boolean) - Method in class org.dromara.hutool.poi.csv.CsvReadConfig
-
- setCurrentRow(int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置当前所在行
- setCurrentRow(int) - Method in class org.dromara.hutool.poi.excel.writer.SheetDataWriter
-
设置当前所在行
- setCurrentRowToEnd() - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
定位到最后一行的后边,用于追加数据
- setDdeSafe(boolean) - Method in class org.dromara.hutool.poi.csv.CsvWriteConfig
-
设置是否动态数据交换安全,使用文本包装符包裹可能存在DDE攻击的内容
见:https://blog.csdn.net/weixin_41924764/article/details/108665746
- setDdeSafe(boolean) - Method in class org.dromara.hutool.poi.csv.CsvWriter
-
设置是否启用dde安全模式,默认false,按需修改
防止使用Excel打开csv文件时存在dde攻击风险
注意此方法会在字段第一个字符包含= + - @时添加'作为前缀,防止公式执行
- setDefaultRowHeight(int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置默认行高,值为一个点的高度
- setDx1(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setDx2(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setDy1(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setDy2(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setEndingLineBreak(boolean) - Method in class org.dromara.hutool.poi.csv.CsvWriteConfig
-
文件末尾是否添加换行符
按照https://datatracker.ietf.org/doc/html/rfc4180#section-2 规范,末尾换行符可有可无。
- setEndLineNo(long) - Method in class org.dromara.hutool.poi.csv.CsvReadConfig
-
设置结束的行(包括),默认不限制,此处为原始文件行号
- setErrorOnDifferentFieldCount(boolean) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
设置每行字段个数不同时是否抛出异常,默认false
- setErrorOnDifferentFieldCount(boolean) - Method in class org.dromara.hutool.poi.csv.CsvReadConfig
-
设置每行字段个数不同时是否抛出异常,默认false
- setExcelConfig(ExcelReadConfig) - Method in class org.dromara.hutool.poi.excel.reader.sheet.AbstractSheetReader
-
设置Excel配置
- setExcelConfig(ExcelReadConfig) - Method in class org.dromara.hutool.poi.excel.reader.sheet.BeanSheetReader
-
设置Excel配置
- setFieldSeparator(char) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
设置字段分隔符,默认逗号','
- setFieldSeparator(char) - Method in class org.dromara.hutool.poi.csv.CsvConfig
-
设置字段分隔符,默认逗号','
- setFillColor(Color) - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
设置填充颜色,null表示不填充
- setFont(short, short, String, boolean) - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
设置全局字体
- setFont(Font, boolean) - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
设置全局字体
- setFontStyle(Font, short, short, String) - Static method in class org.dromara.hutool.poi.excel.style.StyleUtil
-
设置字体样式
- setFreezePane(int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置窗口冻结,之前冻结的窗口会被覆盖,如果rowSplit为0表示取消冻结
- setFreezePane(int, int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置窗口冻结,之前冻结的窗口会被覆盖,如果colSplit和rowSplit为0表示取消冻结
- setHeaderAlias(Map<String, String>) - Method in class org.dromara.hutool.poi.csv.CsvConfig
-
设置标题行的别名Map
- setHeaderAlias(Map<String, String>) - Method in class org.dromara.hutool.poi.excel.ExcelConfig
-
设置标题行的别名Map
- setHeaderAlias(Map<String, String>) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriteConfig
-
- setHeaderLineNo(long) - Method in class org.dromara.hutool.poi.csv.CsvReadConfig
-
设置标题行行号,默认-1,表示无标题行
- setHeaderLocationCache(Map<String, Integer>) - Method in class org.dromara.hutool.poi.excel.writer.SheetDataWriter
-
设置标题位置映射缓存
- setHeaderOrFooter(String, Align, boolean) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置Excel页眉或页脚
- setHyperlink(Hyperlink) - Method in class org.dromara.hutool.poi.excel.cell.NullCell
-
- setHyperlink(Hyperlink) - Method in class org.dromara.hutool.poi.excel.cell.VirtualCell
-
- setIgnoreEmptyRow(boolean) - Method in class org.dromara.hutool.poi.excel.reader.ExcelReadConfig
-
设置是否忽略空行
- setInsertRow(boolean) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriteConfig
-
设置是否插入行,如果为true,则写入行以下的已存在行下移,false则利用填充已有行,不存在时创建行
- setLeftColor(Short) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置左边框的颜色。
- setLeftStyle(BorderStyle) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置左边框的样式。
- setLineColor(Color) - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
设置线条颜色
- setLineDelimiter(char[]) - Method in class org.dromara.hutool.poi.csv.CsvWriteConfig
-
设置换行符
- setLineDelimiter(char[]) - Method in class org.dromara.hutool.poi.csv.CsvWriter
-
设置换行符
- setLineStyle(LineStyle) - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
设置线条样式
- setLineWidth(int) - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
设置线条宽度
- setMaxEntrySize(long) - Static method in class org.dromara.hutool.poi.GlobalPoiConfig
-
设置单个Zip文件中最大文件大小,默认为4GB,即32位zip格式的最大值。
- setMaxTextSize(long) - Static method in class org.dromara.hutool.poi.GlobalPoiConfig
-
设置解压前文本的最大字符数,超过抛出异常。
- setMinInflateRatio(double) - Static method in class org.dromara.hutool.poi.GlobalPoiConfig
-
设置解压时的最小压缩比例
为了避免`Zip Bomb`,POI中设置了最小压缩比例,这个比例为:
压缩后的大小/解压后的大小
POI的默认值是0.01(即最小压缩到1%),如果文档中的文件压缩比例小于这个值,就会报错。
- setName(String) - Method in class org.dromara.hutool.poi.excel.RowGroup
-
设置分组名称
- setOnlyAlias(boolean) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriteConfig
-
设置是否只保留别名中的字段值,如果为true,则不设置alias的字段将不被输出,false表示原样输出
Bean中设置@Alias时,setOnlyAlias是无效的,这个参数只和addHeaderAlias配合使用,原因是注解是Bean内部的操作,而addHeaderAlias是Writer的操作,不互通。
- setRightColor(Short) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置右边框的颜色。
- setRightStyle(BorderStyle) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置右边框的样式。
- setRow1(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setRow2(int) - Method in class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
- setRowHandler(RowHandler) - Method in class org.dromara.hutool.poi.excel.sax.Excel07SaxReader
-
设置行处理器
- setRowHandler(RowHandler) - Method in class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
设置行处理器
- setRowHeight(int, int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置行高,值为一个点的高度
- setRowStyle(int, CellStyle) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置行样式
- setRowStyleIfHasData(int, CellStyle) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setShapeType(ShapeType) - Method in class org.dromara.hutool.poi.excel.style.ShapeConfig
-
设置形状类型
- setSheet(String) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之。
- setSheet(int) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
自定义需要读取或写出的Sheet,如果给定的sheet不存在,创建之(命名为默认)
在读取中,此方法用于切换读取的sheet,在写出时,此方法用于新建或者切换sheet
- setSheet(Sheet) - Method in class org.dromara.hutool.poi.excel.ExcelBase
-
设置自定义Sheet
- setSheet(int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setSheet(String) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setSkipEmptyRows(boolean) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
设置是否跳过空白行,默认true
- setSkipEmptyRows(boolean) - Method in class org.dromara.hutool.poi.csv.CsvReadConfig
-
设置是否跳过空白行,默认true
- setStyle(CellStyle) - Method in class org.dromara.hutool.poi.excel.RowGroup
-
设置样式
- setStyle(CellStyle, String) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setStyle(CellStyle, int, int) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setStyleSet(StyleSet) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
设置样式集,如果不使用样式,传入null
- setStyleSet(StyleSet) - Method in class org.dromara.hutool.poi.excel.writer.SheetDataWriter
-
设置样式表
- setTargetFile(File) - Method in class org.dromara.hutool.poi.excel.writer.ExcelWriter
-
- setTargetFile(File) - Method in class org.dromara.hutool.poi.word.Word07Writer
-
设置写出的目标文件
- setTextDelimiter(char) - Method in class org.dromara.hutool.poi.csv.CsvBaseReader
-
设置 文本分隔符,文本包装符,默认双引号'"'
- setTextDelimiter(char) - Method in class org.dromara.hutool.poi.csv.CsvConfig
-
设置 文本分隔符,文本包装符,默认双引号'"'
- setTo(CellStyle) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
将边框样式和颜色设置到CellStyle中
- setTopColor(Short) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置上边框的颜色。
- setTopStyle(BorderStyle) - Method in class org.dromara.hutool.poi.excel.style.CellBorderStyle
-
设置上边框的样式。
- setTrimField(boolean) - Method in class org.dromara.hutool.poi.csv.CsvReadConfig
-
- setValue(Object) - Method in class org.dromara.hutool.poi.excel.cell.MergedCell
-
设置单元格值
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.BooleanCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.CalendarCellSetter
-
- setValue(Cell) - Method in interface org.dromara.hutool.poi.excel.cell.setters.CellSetter
-
自定义单元格值设置,同时可以设置单元格样式、格式等信息
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.CharSequenceCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.DateCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.HyperlinkCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.ImgCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.NullCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.NumberCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.RichTextCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.setters.TemporalAccessorCellSetter
-
- setValue(Cell) - Method in class org.dromara.hutool.poi.excel.cell.values.FormulaCellValue
-
- setWrapText() - Method in class org.dromara.hutool.poi.excel.style.DefaultStyleSet
-
设置单元格文本自动换行
- ShapeConfig - Class in org.dromara.hutool.poi.excel.style
-
形状配置
用于在Excel中定义形状的样式,包括形状类型、线条样式、线条宽度、线条颜色、填充颜色等
- ShapeConfig() - Constructor for class org.dromara.hutool.poi.excel.style.ShapeConfig
-
- sharedStrings - Variable in class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
- sheet - Variable in class org.dromara.hutool.poi.excel.ExcelBase
-
Excel中对应的Sheet
- SHEET_NAME_PREFIX - Static variable in interface org.dromara.hutool.poi.excel.sax.ExcelSaxReader
-
sheet name前缀
- SheetDataSaxHandler - Class in org.dromara.hutool.poi.excel.sax
-
sheetData标签内容读取处理器
<sheetData></sheetData>
- SheetDataSaxHandler(RowHandler, boolean) - Constructor for class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
构造
- SheetDataWriter - Class in org.dromara.hutool.poi.excel.writer
-
Sheet数据写出器
此对象只封装将数据写出到Sheet中,并不刷新到文件
- SheetDataWriter(Sheet, ExcelWriteConfig, StyleSet) - Constructor for class org.dromara.hutool.poi.excel.writer.SheetDataWriter
-
构造
- sheetIndex - Variable in class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
- SheetReader<T> - Interface in org.dromara.hutool.poi.excel.reader.sheet
-
Excel Sheet读取接口,通过实现此接口,将Sheet中的数据读取为不同类型。
- SheetRidReader - Class in org.dromara.hutool.poi.excel.sax
-
在Sax方式读取Excel时,读取sheet标签中sheetId和rid的对应关系,类似于:
<sheet name="Sheet6" sheetId="4" r:id="rId6"/>
读取结果为:
{"4": "6"}
- SheetRidReader() - Constructor for class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
- SheetTemplateWriter - Class in org.dromara.hutool.poi.excel.writer
-
模板Excel写入器
解析已有模板,并填充模板中的变量为数据
- SheetTemplateWriter(Sheet, ExcelWriteConfig) - Constructor for class org.dromara.hutool.poi.excel.writer.SheetTemplateWriter
-
构造
- SheetUtil - Class in org.dromara.hutool.poi.excel
-
Sheet相关工具类
- SheetUtil() - Constructor for class org.dromara.hutool.poi.excel.SheetUtil
-
- SimpleClientAnchor - Class in org.dromara.hutool.poi.excel
-
简单的ClientAnchor实现,此对象表示一个图形或绘图在Excel中的位置和大小,参数表示:
dx1和dy1表示在左上角单元格中的偏移量,col1和row1表示左上角单元格
dx2和dy2表示在右下角单元格中的偏移量,col2和row2表示右下角单元格
图示见:https://www.cnblogs.com/sunyl/p/7527703.html
- SimpleClientAnchor(int, int, int, int) - Constructor for class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
构造
通过定义左上角和右下角的单元格,创建一个ClientAnchor对象
默认偏移为0,默认type为: AnchorType#MOVE_AND_RESIZE.
- SimpleClientAnchor(int, int, int, int, int, int, int, int) - Constructor for class org.dromara.hutool.poi.excel.SimpleClientAnchor
-
构造
通过定义左上角和右下角的单元格,以及单元格中的偏移量,创建一个ClientAnchor对象
默认type为: AnchorType#MOVE_AND_RESIZE.
- skipEmptyRows - Variable in class org.dromara.hutool.poi.csv.CsvReadConfig
-
是否跳过空白行,默认true
- startElement(String, String, String, Attributes) - Method in class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
读到一个xml开始标签时的回调处理方法
- startElement(String, String, String, Attributes) - Method in class org.dromara.hutool.poi.excel.sax.SheetRidReader
-
- startRowIndex - Variable in class org.dromara.hutool.poi.excel.sax.handler.AbstractRowHandler
-
读取起始行(包含,从0开始计数)
- stream() - Method in class org.dromara.hutool.poi.csv.CsvReader
-
根据Reader创建
Stream,以便使用stream方式读取csv行
- StyleSet - Interface in org.dromara.hutool.poi.excel.style
-
样式集合接口
通过自定义样式集合,可根据单元格不同、值的不同设置不同的样式
- stylesTable - Variable in class org.dromara.hutool.poi.excel.sax.SheetDataSaxHandler
-
- StyleUtil - Class in org.dromara.hutool.poi.excel.style
-
Excel样式工具类
- StyleUtil() - Constructor for class org.dromara.hutool.poi.excel.style.StyleUtil
-
- valueOf(String) - Static method in enum org.dromara.hutool.poi.excel.ExcelImgType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.poi.excel.sax.AttributeName
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.poi.excel.sax.CellDataType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.poi.excel.sax.ElementName
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.poi.excel.style.Align
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.poi.excel.style.LineStyle
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.dromara.hutool.poi.excel.ExcelImgType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.poi.excel.sax.AttributeName
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.poi.excel.sax.CellDataType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.poi.excel.sax.ElementName
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.poi.excel.style.Align
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.poi.excel.style.LineStyle
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VirtualCell - Class in org.dromara.hutool.poi.excel.cell
-
虚拟单元格,表示一个单元格的位置、值和样式,但是并非实际创建的单元格
注意:虚拟单元格设置值和样式均不会在实际工作簿中生效
- VirtualCell(Cell, int, int) - Constructor for class org.dromara.hutool.poi.excel.cell.VirtualCell
-
构造
- VirtualCell(Cell, int, int, Object) - Constructor for class org.dromara.hutool.poi.excel.cell.VirtualCell
-
构造
- VirtualCell(Row, int, int) - Constructor for class org.dromara.hutool.poi.excel.cell.VirtualCell
-
构造