public class CsvInputStream extends Object
| Constructor and Description |
|---|
CsvInputStream(Reader input)
Maakt een nieuwe CsvInputStream, default separator ',' en checkColumnCount
false.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCheckColumnCount() |
int |
getColumnCount() |
String |
getInputDescription() |
int |
getLastRecordNumber() |
int |
getLineNumber() |
char |
getSeparator() |
String[] |
readRecord() |
List |
readRecordAsList()
Leest het volgende csv record en retourneert de velden als elementen in
een String array.
|
void |
setCheckColumnCount(boolean checkColumnCount) |
void |
setInputDescription(String inputDescription) |
void |
setSeparator(char separator) |
public CsvInputStream(Reader input)
input - The reader to the csv file to be parsedpublic List readRecordAsList() throws IOException, CsvFormatException
IOException - when there is an IO errorCsvFormatException - CsvFormatExcpetion Indien het csv bestand ongeldig is, of indien
checkColumnCount enabled en het record niet evenveel kolommen heeft als
het eerste record.public String[] readRecord() throws IOException, CsvFormatException
IOExceptionCsvFormatExceptionpublic int getLastRecordNumber()
public int getLineNumber()
public char getSeparator()
public void setSeparator(char separator)
public boolean getCheckColumnCount()
public void setCheckColumnCount(boolean checkColumnCount)
public int getColumnCount()
public String getInputDescription()
public void setInputDescription(String inputDescription)
Copyright © 2017. All rights reserved.