Class StringOneLineHeaderExcelTableReader

All Implemented Interfaces:
IfDataTypeStringExcelTable, IfExcelTable<String>, IfFormatOneLineHeaderExcelTable<String>, IfDataTypeStringExcelTableReader, IfExcelTableReader<String>, IfFormatOneLineHeaderExcelTableReader<String>
Direct Known Subclasses:
StringOneLineHeaderExcelTableToBeanReader

public class StringOneLineHeaderExcelTableReader extends StringExcelTableReader implements IfFormatOneLineHeaderExcelTableReader<String>
Reads tables with known number of columns, known header labels and known start position of the table.

It obtains cell values as String.

The header line is required. This class reads the table at the designated position and designated lines and columns.
Finish reading if all the columns are empty in a line.

  • Constructor Details

    • StringOneLineHeaderExcelTableReader

      public StringOneLineHeaderExcelTableReader(@RequireNonnull String sheetName, @RequireNonnull String[] headerLabels, Integer tableStartRowNumber, int tableStartColumnNumber, @Nullable Integer tableRowSize)
      Constructs a new instance. the obtained value from an empty cell is null.

      tableColumnSize is not designated because tableColumnSize of the table is obviously equal to the length of the header array.

      About the params sheetName, tableStartRowNumber, tableStartColumnNumber, tableRowSize and tableColumnSize, see ExcelTableReader(String, Integer, int, Integer, Integer).

    • StringOneLineHeaderExcelTableReader

      public StringOneLineHeaderExcelTableReader(@RequireNonnull String sheetName, @RequireNonnull String[] headerLabels, @Nullable Integer tableStartRowNumber, int tableStartColumnNumber, @Nullable Integer tableRowSize, @Nonnull NoDataString noDataString)
      Constructs a new instance with the obtained value from an empty cell.

      tableColumnSize is not designated because tableColumnSize of the table is obviously equal to the length of the header array.

      About the params sheetName, tableStartRowNumber, tableStartColumnNumber, tableRowSize and tableColumnSize, see ExcelTableReader(String, Integer, int, Integer, Integer).

      Parameters:
      sheetName - the sheet name of the excel file
      tableStartRowNumber - tableStartRowNumber
      tableStartColumnNumber - tableStartColumnNumber
      tableRowSize - tableRowSize
      noDataString - the obtained value from an empty cell. null or "".
  • Method Details