public class CSVReader extends Object
Modifier and Type | Class and Description |
---|---|
class |
CSVReader.OpenedCSVFile
A CSV file that has been opened for reading from the file-system.
|
public CSVReader(String regularExpressionSeperator, boolean firstLineHeaders)
regularExpressionSeperator
- a regular-expression in Java syntax for splitting a line by
separator.firstLineHeaders
- whether the first line of the CSV file contains headers or not.public CSVReader(String regularExpressionSeperator, boolean firstLineHeaders, boolean quotedStrings)
public CSVReader.OpenedCSVFile read(Path filePath) throws CSVReaderException
filePath
- path to fileCSVReaderException
- if any error occurs while reading the CSV file.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.