Class ExcelTableWriter<T>

java.lang.Object
jp.ecuacion.util.poi.excel.table.ExcelTable<T>
jp.ecuacion.util.poi.excel.table.writer.ExcelTableWriter<T>
Type Parameters:
T - See IfExcelTable.
All Implemented Interfaces:
IfExcelTable<T>, IfExcelTableWriter<T>
Direct Known Subclasses:
CellFreeExcelTableWriter, CellOneLineHeaderExcelTableWriter

public abstract class ExcelTableWriter<T> extends ExcelTable<T> implements IfExcelTableWriter<T>
Is a parent of excel table writer classes.
  • Constructor Details

  • Method Details

    • write

      public void write(String templateFilePath, String destFilePath, List<List<T>> dataList) throws Exception
      Writes table data to the designated excel file.
      Parameters:
      destFilePath - destFilePath
      dataList - dataList
      Throws:
      Exception
    • getHeaderList

      protected abstract List<List<String>> getHeaderList(@RequireNonnull String templateFilePath, int tableColumnSize) throws org.apache.poi.EncryptedDocumentException, jp.ecuacion.lib.core.exception.checked.AppException, IOException
      Obtains header list.
      Parameters:
      tableColumnSize - tableColumnSize
      Returns:
      the list
      Throws:
      IOException - IOException
      jp.ecuacion.lib.core.exception.checked.AppException - AppException
      org.apache.poi.EncryptedDocumentException - EncryptedDocumentException