Class ExcelExtractor

java.lang.Object
org.miaixz.bus.office.excel.ExcelExtractor

public class ExcelExtractor extends Object
ExcelExtractor工具封装
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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内容

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExcelExtractor

      public ExcelExtractor()
  • Method Details

    • getExtractor

      public static org.apache.poi.ss.extractor.ExcelExtractor getExtractor(org.apache.poi.ss.usermodel.Workbook wb)
      获取 ExcelExtractor 对象
      Parameters:
      wb - Workbook
      Returns:
      ExcelExtractor
    • readAsText

      public static String readAsText(org.apache.poi.ss.usermodel.Workbook wb, boolean withSheetName)
      读取为文本格式 使用ExcelExtractor 提取Excel内容
      Parameters:
      wb - Workbook
      withSheetName - 是否附带sheet名
      Returns:
      Excel文本