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 - 行号Rowpublic static List<Object> readRow(org.apache.poi.ss.usermodel.Row row, CellEditor cellEditor)
row - 行cellEditor - 单元格编辑器Copyright © 2021. All rights reserved.