Method Summary |
|
public void | changeDelimiter(char newDelim) Change this parser so that it uses a new delimiter. |
public void | changeQuote(char newQuote) Change this parser so that it uses a new character for quoting. |
public void | close() Close any stream upon which this parser is based. |
public String[][] | getAllValues() Get all the values from the file.
If the file has already been partially read, only the
values that have not already been read will be included.
Each line of the file that has at least one value will be
represented. |
public int | getLabelIndex(String label) Get the index of the column having the given label.
The
LabeledCSVParser.getLine() method returns an
array of field values for a single record of data. |
public String[] | getLabels() Return an array of all field names from the top
of the CSV file. |
public int | getLastLineNumber() Get the line number that the last token came from. |
public String[] | getLine() Get all the values from a line.
If the line has already been partially read, only the values that have not
already been read will be included.
In addition to returning all the values from a line, LabeledCSVParser
maintains a buffer of the values. |
public String | getValueByLabel(String label) Given the label for the column, get the column from the last line that
was read. |
public int | lastLineNumber() Get the line number that the last token came from. |
public String | nextValue() Read the next value from the file. |
public void | setLabels(HashMap labelMap) |