public class RowUtil extends Object
Row
封装工具类Constructor and Description |
---|
RowUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.poi.ss.usermodel.Row |
getOrCreateRow(org.apache.poi.ss.usermodel.Sheet sheet,
int rowIndex)
获取已有行或创建新行
|
static List<Object> |
readRow(org.apache.poi.ss.usermodel.Row row,
CellEditor cellEditor)
读取一行
|
static void |
writeRow(org.apache.poi.ss.usermodel.Row row,
Iterable<?> rowData,
StyleSet styleSet,
boolean isHeader)
写一行数据
|
public static org.apache.poi.ss.usermodel.Row getOrCreateRow(org.apache.poi.ss.usermodel.Sheet sheet, int rowIndex)
sheet
- Excel表rowIndex
- 行号Row
public static List<Object> readRow(org.apache.poi.ss.usermodel.Row row, CellEditor cellEditor)
row
- 行cellEditor
- 单元格编辑器Copyright © 2021. All rights reserved.