@Test public void testGetHeaderNoCheck() throws IOException { assertEquals(4, abstractReader.getHeader(false).length); assertEquals(4, abstractReader.getHeader(false).length); assertEquals(4, abstractReader.getHeader(false).length); assertNull(abstractReader.getHeader(false)); }
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; }
AbstractCsvReader implements ICsvReader { 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; } }
AbstractCsvReader implements ICsvReader { 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; } AbstractCsvReader(final Reader reader, final CsvPreference preferences);  AbstractCsvReader(final ITokenizer tokenizer, final CsvPreference preferences); }
AbstractCsvReader implements ICsvReader { 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; } AbstractCsvReader(final Reader reader, final CsvPreference preferences);  AbstractCsvReader(final ITokenizer tokenizer, final CsvPreference preferences); void close(); String get(final int n); String[] getHeader(final boolean firstLineCheck); int getLineNumber(); String getUntokenizedRow(); int getRowNumber(); int length(); }
AbstractCsvReader implements ICsvReader { 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; } AbstractCsvReader(final Reader reader, final CsvPreference preferences);  AbstractCsvReader(final ITokenizer tokenizer, final CsvPreference preferences); void close(); String get(final int n); String[] getHeader(final boolean firstLineCheck); int getLineNumber(); String getUntokenizedRow(); int getRowNumber(); int length();  }