Reader reader = new InputStreamReader(stream, encoding);
CSVStrategy strategy = new CSVStrategy(delimiter, '"', CSVStrategy.COMMENTS_DISABLED,
CSVStrategy.ESCAPE_DISABLED, false, false, false, false);
CSVParser parser = new CSVParser(reader, strategy);
for (int ii = 0; ii < skipLines; ii++)
parser.getLine();
List<String[]> values = new ArrayList<String[]>();
String[] header = null;
String[] line = parser.getLine();
if (isFirstLineHeader)
{
header = line;
}
else
{
header = new String[line.length];
for (int ii = 0; ii < header.length; ii++)
header[ii] = MessageFormat.format(Messages.CSVImportGenericColumnLabel, ii + 1);
values.add(line);
}
while ((line = parser.getLine()) != null)
values.add(line);
this.columns = new CSVImporter.Column[header.length];
for (int ii = 0; ii < header.length; ii++)
this.columns[ii] = new Column(ii, header[ii]);