/** * Get the column name for a given column position. * * @param col Column position. * @return The column name or null if the position is larger than the * header array or there are no headers defined. */ public String getColumnName(int col) { // headerIndex is never null because it's final return headerIndex.getByPosition(col); }
/** * Gets a column name. * * @param col Position of the column. * @return Column name or null if col > number of mappings. */ @Override public String getColumnName(int col) { return headerIndex.getByPosition(col); }
@Override public String findHeader(int col) { return headerIndex.getByPosition(col); }
@Override public String getColumnName(int col) { String name = headerIndex.getByPosition(col); if(name != null) { name = columnMapping.get(name.toUpperCase()); } return name; }