com.univocity.parsers.common
Class ColumnMap

java.lang.Object
  extended by 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

Constructor Summary
ColumnMap(Context context, ParserOutput output)
           
 
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
 

Constructor Detail

ColumnMap

public ColumnMap(Context context,
                 ParserOutput output)
Method Detail

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 © 2018 uniVocity Software Pty Ltd. All rights reserved.