public class ExcelExtractorUtil extends Object
ExcelExtractor
工具封装Constructor and Description |
---|
ExcelExtractorUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.poi.ss.extractor.ExcelExtractor |
getExtractor(org.apache.poi.ss.usermodel.Workbook wb)
获取
ExcelExtractor 对象 |
static String |
readAsText(org.apache.poi.ss.usermodel.Workbook wb,
boolean withSheetName)
读取为文本格式
使用 ExcelExtractor 提取Excel内容 |
public static org.apache.poi.ss.extractor.ExcelExtractor getExtractor(org.apache.poi.ss.usermodel.Workbook wb)
ExcelExtractor
对象wb
- Workbook
ExcelExtractor
public static String readAsText(org.apache.poi.ss.usermodel.Workbook wb, boolean withSheetName)
ExcelExtractor
提取Excel内容wb
- Workbook
withSheetName
- 是否附带sheet名Copyright © 2024. All rights reserved.