Class ColumnMap

java.lang.Object
com.univocity.parsers.common.ColumnMap

public class ColumnMap extends Object
Class responsible for calculating and storing the position of fields parsed from the input.
  • Field Details

    • columnMap

      private Map<NormalizedString,Integer> columnMap
    • enumMap

      private int[] enumMap
    • extractedIndexes

      private int[] extractedIndexes
    • context

      private final Context context
    • output

      private final ParserOutput output
  • Constructor Details

  • Method Details

    • indexOf

      public int indexOf(String header)
      Returns the position of a header (0 based).
      Parameters:
      header - the header whose position will be returned
      Returns:
      the position of the given header, or -1 if it could not be found.
    • validateHeader

      private void validateHeader(Object header)
    • indexOf

      public int indexOf(Enum<?> header)
      Returns the position of a header (0 based).
      Parameters:
      header - the header whose position will be returned
      Returns:
      the position of the given header, or -1 if it could not be found.
    • reset

      void reset()