public interface ICsvReader extends Closeable
Modifier and Type | Method and Description |
---|---|
String |
get(int n)
Get column N of the current line (column indexes begin at 1).
|
String[] |
getHeader(boolean firstLineCheck)
This method is used to get an optional header of the CSV file and move the file cursor to the first row
containing data (the second row from the top).
|
int |
getLineNumber()
Gets the current position in the file, where the first line of the file is line number 1.
|
int |
getRowNumber()
Gets the current row number (i.e.
|
String |
getUntokenizedRow()
Returns the untokenized CSV row that was just read (which can potentially span multiple lines in the file).
|
int |
length()
Returns the length (i.e.
|
String get(int n)
n
- the index of the column to getIndexOutOfBoundsException
- if the supplied index is not a valid column indexString[] getHeader(boolean firstLineCheck) throws IOException
nameMapping
array for read operations.firstLineCheck
- if true, ensures that this method is only called when reading the first line (as that's where the
header is meant to be)IOException
- if an I/O exception occursSuperCsvException
- if firstLineCheck == true and it's not the first line being readint getLineNumber()
String getUntokenizedRow()
int getRowNumber()
int length()
Copyright © 2007–2015 Super CSV. All rights reserved.