public class Tokenizer extends AbstractTokenizer
readColumns(List)
, then consider writing your own Tokenizer by extending
AbstractTokenizer.Constructor and Description |
---|
Tokenizer(java.io.Reader reader,
CsvPreference preferences)
Constructs a new Tokenizer, which reads the CSV file, line by line.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUntokenizedRow()
Returns the raw (untokenized) CSV row that was just read (which can potentially span multiple lines in the file).
|
boolean |
readColumns(java.util.List<java.lang.String> columns)
Reads a CSV row into the supplied List of columns (which can potentially span multiple lines in the file).
|
close, getLineNumber, getPreferences, readLine
public Tokenizer(java.io.Reader reader, CsvPreference preferences)
reader
- the readerpreferences
- the CSV preferencesjava.lang.NullPointerException
- if reader or preferences is nullpublic boolean readColumns(java.util.List<java.lang.String> columns) throws java.io.IOException
columns
- the List of columns to read intojava.io.IOException
- when an IOException occurspublic java.lang.String getUntokenizedRow()
Copyright © 2007-2014 Super CSV. All Rights Reserved.