// no physical rows in sheet
return table;
}
Row row = null;
if (_configuration.isSkipEmptyLines()) {
while (row == null && rowIterator.hasNext()) {
row = rowIterator.next();
}
} else {
row = rowIterator.next();
}
final int columnNameLineNumber = _configuration.getColumnNameLineNumber();
if (columnNameLineNumber == ExcelConfiguration.NO_COLUMN_NAME_LINE) {
// get to the first non-empty line (no matter if lines are skipped
// or not we need to read ahead to figure out how many columns there
// are!)
while (row == null && rowIterator.hasNext()) {
row = rowIterator.next();
}
// build columns by using alphabetic sequences
// (A,B,C...)
AlphabeticSequence sequence = new AlphabeticSequence();
final int offset = getColumnOffset(row);
for (int i = 0; i < offset; i++) {
sequence.next();
}
for (int j = offset; j < row.getLastCellNum(); j++) {
Column column = new MutableColumn(sequence.next(), ColumnType.STRING, table, j, true);
table.addColumn(column);
}
} else {