/** * {@inheritDoc} */ public String[] getHeader(final boolean firstLineCheck) throws IOException { if( firstLineCheck && tokenizer.getLineNumber() != 0 ) { throw new SuperCsvException(String.format( "CSV header must be fetched as the first read operation, but %d lines have already been read", tokenizer.getLineNumber())); } if( readRow() ) { return columns.toArray(new String[columns.size()]); } return null; }