Package com.univocity.parsers.common
Class ColumnMap
- java.lang.Object
-
- com.univocity.parsers.common.ColumnMap
-
public class ColumnMap extends java.lang.Object
Class responsible for calculating and storing the position of fields parsed from the input.- Author:
- Univocity Software Pty Ltd - dev@univocity.com
-
-
Constructor Summary
Constructors Constructor Description ColumnMap(Context context, ParserOutput output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
indexOf(java.lang.Enum<?> header)
Returns the position of a header (0 based).int
indexOf(java.lang.String header)
Returns the position of a header (0 based).
-
-
-
Constructor Detail
-
ColumnMap
public ColumnMap(Context context, ParserOutput output)
-
-
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.
-
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.
-
-