public class ExcelRowSplit extends SplitTargetGenerator
Modifier and Type | Field and Description |
---|---|
org.apache.poi.ss.usermodel.Sheet |
sheet
sheet
|
autoClose, currentOutputStream, currentTargetIndex, generatorBaseName, generatorNameSuffix, generatorPathDir, suffix, targets
Constructor and Description |
---|
ExcelRowSplit(org.apache.poi.ss.usermodel.Sheet sheet,
int limit) |
Modifier and Type | Method and Description |
---|---|
ExcelRowSplit |
columns(int... columns)
设置读取的列
|
ExcelRowSplit |
columnSize(int columnSize)
设置列数 用于设置列宽
|
int |
getLimit() |
org.apache.poi.ss.usermodel.Sheet |
getSheet() |
ExcelRowSplit |
header(String... header)
设置表头
|
ExcelRowSplit |
protect(String password)
保护表格
|
ExcelRowSplit |
skip()
跳过头部一行
|
ExcelRowSplit |
skip(int skip)
跳过头部多行
|
ExcelRowSplit |
split()
执行拆分
|
autoClose, close, generatorOutputStream, hasNext, next, target, target, target, targetPath, targetPath
public ExcelRowSplit(org.apache.poi.ss.usermodel.Sheet sheet, int limit)
public ExcelRowSplit protect(String password)
password
- passwordpublic ExcelRowSplit skip()
public ExcelRowSplit skip(int skip)
skip
- 行数public ExcelRowSplit columns(int... columns)
columns
- 列public ExcelRowSplit columnSize(int columnSize)
columnSize
- 列数public ExcelRowSplit header(String... header)
header
- 表头public ExcelRowSplit split()
public org.apache.poi.ss.usermodel.Sheet getSheet()
public int getLimit()
Copyright © 2024. All rights reserved.