| 程序包 | 说明 |
|---|---|
| org.ttzero.excel.reader |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
CalcSheet
Make worksheets parse formulas
|
interface |
MergeSheet
Copy values when reading merged cells.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
XMLSheet
The open-xml format Worksheet
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Sheet[] |
ExcelReader.sheets
保存所有工作表,读取工作表之前必须调用
load()方法加载初始信息 |
| 限定符和类型 | 方法和说明 |
|---|---|
default Sheet |
Sheet.addHeaderColumnReadOption(int option)
Add header columns preprocessing properties
|
Sheet[] |
ExcelReader.all()
获取全部工作表,通过此方法获取的工作表在读取前需要先调用
load方法 |
Sheet |
Sheet.asSheet()
Make worksheets parse value only
|
Sheet |
Sheet.bind(Class<?> clazz)
Set the binding type
|
default Sheet |
Sheet.bind(Class<?> clazz,
int fromRowNum)
Set the binding type
|
default Sheet |
Sheet.bind(Class<?> clazz,
int fromRowNum,
int toRowNum)
Set the binding type
|
Sheet |
XMLSheet.bind(Class<?> clazz,
Row row) |
Sheet |
Sheet.bind(Class<?> clazz,
Row row)
Set the binding type
|
default Sheet |
Sheet.forceImport()
Use field name matching without
ExcelColumn annotation
When converting row data to Java objects, only fields with ExcelColumn annotations
are matched by default. |
Sheet |
Drawings.Picture.getSheet() |
default Sheet |
Sheet.header(int fromRowNum)
Specify the header rows endpoint
|
Sheet |
XMLSheet.header(int fromRowNum,
int toRowNum)
Specify the header rows endpoint
Note: After specifying the header row number, the row-pointer will move to the
next row of the header range.
|
Sheet |
Sheet.header(int fromRowNum,
int toRowNum)
Specify the header rows endpoint
Note: After specifying the header row number, the row-pointer will move to the
next row of the header range.
|
default Sheet |
Sheet.headerColumnIgnoreCase()
Settings ignore case matching column names
|
default Sheet |
Sheet.headerColumnToCamelCase()
Convert column name to camel case
|
Sheet |
Sheet.load()
Load the sheet data
|
default Sheet |
Sheet.reset()
Reset the
Sheet's row index to begging |
Sheet |
XMLSheet.setHeaderColumnReadOption(int option)
Setting header columns preprocessing properties
|
Sheet |
Sheet.setHeaderColumnReadOption(int option)
Setting header columns preprocessing properties
HeaderRow.FORCE_IMPORT: Match with field name if without ExcelColumn annotation
HeaderRow.IGNORE_CASE: Ignore case matching column names
HeaderRow.CAMEL_CASE: CAMEL_CASE to camelCase
reader.sheet(0).setHeaderColumnReadOption(HeaderRow.FORCE_IMPORT | HeaderRow.IGNORE_CASE)
|
Sheet |
ExcelReader.sheet(int index)
获取指定位置的工作表,此方法默认
load工作表所以外部无需再次调用load方法 |
Sheet |
ExcelReader.sheet(String sheetName)
获取指定名称的工作表,此方法默认
load工作表所以外部无需再次调用load方法 |
protected Sheet |
ExcelReader.sheetFactory(int option)
通过OPTION创建相应工作表
|
| 限定符和类型 | 方法和说明 |
|---|---|
Stream<Sheet> |
ExcelReader.sheets()
返回一个工作表的流,它将按顺序解析当前excel包含所有工作表(含隐藏工作表),
此方法默认
load工作表所以外部无需再次调用load方法 |
| 限定符和类型 | 方法和说明 |
|---|---|
default List<Drawings.Picture> |
Drawings.listPictures(Sheet sheet)
列出指定工作表包含的图片
|
protected List<Drawings.Picture> |
XMLDrawings.quickFindCellImages(Sheet sheet,
Map<String,Path> cellImageMapper)
快整查询内嵌图片在工作表中的位置
|
Copyright © 2023. All rights reserved.