Class ColumnMap


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

      • columnMap

        private java.util.Map<NormalizedString,​java.lang.Integer> columnMap
      • enumMap

        private int[] enumMap
      • extractedIndexes

        private int[] extractedIndexes
      • context

        private final Context context
    • Method Detail

      • indexOf

        public int indexOf​(java.lang.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​(java.lang.Object header)
      • indexOf

        public int indexOf​(java.lang.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()