Interface Header

All Superinterfaces:
Iterable<String>
All Known Implementing Classes:
HeaderImpl

public interface Header extends Iterable<String>
The original header of the CSV file.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getIndex(String columnName)
    Gets the index column of the first column with a certain name.
    getName(int indexColumn)
    Gets the name of the header column with passed index.
    Generate an error report on the header row.
    int
    Number of columns.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • size

      int size()
      Number of columns.
      Returns:
      the number of columns
    • getName

      String getName(int indexColumn)
      Gets the name of the header column with passed index.
      Parameters:
      indexColumn - column index to find the name for
      Returns:
      name of the header column
    • getIndex

      int getIndex(String columnName)
      Gets the index column of the first column with a certain name.
      Parameters:
      columnName - column name to find the index for
      Returns:
      index of the header column
    • reportOnEndOfLine

      RowReport reportOnEndOfLine()
      Generate an error report on the header row.
      Returns:
      error report on the header row