public class CsvFileReader extends Object
| Constructor and Description |
|---|
CsvFileReader() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.commons.csv.CSVRecord> |
readCsvFile(File file,
String[] header)
Reads a csv file with the given header definition
|
static List<org.apache.commons.csv.CSVRecord> |
readCsvFile(Reader reader,
org.apache.commons.csv.CSVFormat csvFormat)
Reads the csvfile
|
static List<org.apache.commons.csv.CSVRecord> |
readCsvFile(Reader reader,
String[] header)
Reads csv file with specified header
|
static List<org.apache.commons.csv.CSVRecord> |
readCsvFile(String filePath) |
public static List<org.apache.commons.csv.CSVRecord> readCsvFile(Reader reader, String[] header) throws Exception
reader - that readsheader - containing the header infoException - with the stacktracepublic static List<org.apache.commons.csv.CSVRecord> readCsvFile(Reader reader, org.apache.commons.csv.CSVFormat csvFormat) throws Exception
reader - for readingcsvFormat - the format used to readException - with the stacktracepublic static List<org.apache.commons.csv.CSVRecord> readCsvFile(File file, String[] header) throws Exception
file - containing the contentheader - containing header informationException - with the stacktraceCopyright © 2019–2021 personify. All rights reserved.