Package io.github.caijiang.common.execl
Object ExeclUtils
-
- All Implemented Interfaces:
public class ExeclUtilsCJ
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classExeclUtils.ExeclResult包括
每个 column 的头 title(必然是字符串)
public final classExeclUtils.CopyValue表示这个值是跟其他字段分享的(从表格中是合并形式的)
public final classExeclUtils.RowMessage
-
Field Summary
Fields Modifier and Type Field Description public final static ExeclUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static List<String>sheetNames(InputStream data)final static FileeasyAddExeclMessages(InputStream data, String author, ExeclUtils.RowMessage rows)将一些批注或者警告写入现有 xls final static ExeclUtils.ExeclResulteasyReadAll(InputStream data, Integer sheetNo, Integer headRowNumber, Function1<ExcelReaderBuilder, Unit> block)-
-
Method Detail
-
sheetNames
final static List<String> sheetNames(InputStream data)
- Returns:
获取所有的 sheet name
-
easyAddExeclMessages
final static File easyAddExeclMessages(InputStream data, String author, ExeclUtils.RowMessage rows)
将一些批注或者警告写入现有 xls
- Parameters:
data- 数据author- 批注作者rows- 批注警告信息
-
easyReadAll
final static ExeclUtils.ExeclResult easyReadAll(InputStream data, Integer sheetNo, Integer headRowNumber, Function1<ExcelReaderBuilder, Unit> block)
- Parameters:
data- 数据sheetNo- sheetheadRowNumber- 默认 1block- 可选的再处理- Returns:
获取包含行列样式的一切结果 ExeclResult
-
-
-
-