Interface IfExcelTableReader<T>

Type Parameters:
T - See IfExcelTable.
All Superinterfaces:
IfExcelTable<T>
All Known Subinterfaces:
IfDataTypeCellExcelTableReader, IfDataTypeStringExcelTableReader, IfFormatFreeExcelTableReader<T>, IfFormatOneLineHeaderExcelTableReader<T>
All Known Implementing Classes:
CellFreeExcelTableReader, CellOneLineHeaderExcelTableReader, ExcelTableReader, StringFreeExcelTableReader, StringOneLineHeaderExcelTableReader, StringOneLineHeaderExcelTableToBeanReader

public interface IfExcelTableReader<T> extends IfExcelTable<T>
Provides the excel table reader methods.
  • Method Details

    • getExcelReadUtil

      ExcelReadUtil getExcelReadUtil()
      Returns an instance of ExcelReadUtil.
      Returns:
      ExcelReadUtil instance
    • updateAndGetHeaderList

      @Nullable List<List<String>> updateAndGetHeaderList(@Nonnull List<List<T>> tableData)
      Updates excel data to treat it easily, like remove its header line, and returns the header list.

      Considering various patterns of headers, return type ls List<List<String>>.

      Parameters:
      tableData - table data
      Returns:
      header data
    • getCellData

      @Nullable T getCellData(@RequireNonnull org.apache.poi.ss.usermodel.Cell cell)
      Returns the obtained value from the cell.

      If you want to get String value from the cell, it returns the String value.

      Parameters:
      cell - cell, may be null.
      Returns:
      the obtained value from the cell
    • isCellDataEmpty

      boolean isCellDataEmpty(@Nullable T cellData)
      Returns whether the value of the cell is empty.
      Parameters:
      cellData - cellData
      Returns:
      whether the valule of the cell is empty.