com.univocity.parsers.common
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.
- Author:
- uniVocity Software Pty Ltd - dev@univocity.com
|
Method Summary |
int |
indexOf(Enum<?> header)
Returns the position of a header (0 based). |
int |
indexOf(String header)
Returns the position of a header (0 based). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnMap
public ColumnMap(Context context,
ParserOutput output)
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.
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.
Copyright © 2016 uniVocity Software Pty Ltd. All rights reserved.