Class ExcelExport

java.lang.Object
cn.creekmoon.excel.core.W.ExcelExport

public class ExcelExport extends Object
Author:
JY
  • Field Details

    • debugger

      public boolean debugger
      打印调试内容
    • taskId

      protected String taskId
    • resultFilePath

      protected String resultFilePath
    • excelName

      public String excelName
    • metadatas

      public HashMap<Object,Object> metadatas
    • sheetIndex2SheetWriter

      public cn.hutool.core.map.BiMap<Integer,Writer> sheetIndex2SheetWriter
  • Method Details

    • create

      public static ExcelExport create()
    • switchSheet

      public <T> TitleWriter<T> switchSheet(Integer sheetIndex, Class<T> newDataClass)
      切换到新的标签页
    • switchNewSheet

      public <T> TitleWriter<T> switchNewSheet(Class<T> newDataClass)
      切换到新的标签页
    • debug

      public ExcelExport debug()
    • response

      public void response(jakarta.servlet.http.HttpServletResponse response) throws IOException
      响应并清除文件
      Parameters:
      response -
      Throws:
      IOException
    • stopWrite

      public String stopWrite()
      停止写入 1.进行手动重排序 因为在wps/excel中sheet显示顺序与index无关,还有隐藏sheet 2. 回调各个写入器的onStopWrite方法
      Returns:
      结果文件绝对路径