public class CSVInputReader extends java.lang.Object implements InputReaderI, java.io.Closeable, java.util.Iterator<DataSetI>
| Constructor and Description |
|---|
CSVInputReader(CSVConfiguration _conf) |
CSVInputReader(CSVConfiguration _conf,
boolean _skipHeading) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
getLocationInfo() |
boolean |
hasNext() |
DataSetI |
next()
Reads the next line from the input, parses it, converts the string field
values into typed values (according to and via the CSVConfiguration) and
returns a DataSetI with all the values.
|
static java.lang.String[] |
splitLine(java.lang.String line,
java.lang.String _enclosingChar,
java.lang.String _separator,
int columnToSkip)
Helper method to split a given line (String) into fields, in a separate
method basically only so we could easily write a JUnit test.
|
public CSVInputReader(CSVConfiguration _conf)
public CSVInputReader(CSVConfiguration _conf, boolean _skipHeading)
public boolean hasNext()
hasNext in interface InputReaderIhasNext in interface java.util.Iterator<DataSetI>public DataSetI next()
next in interface InputReaderInext in interface java.util.Iterator<DataSetI>public static java.lang.String[] splitLine(java.lang.String line,
java.lang.String _enclosingChar,
java.lang.String _separator,
int columnToSkip)
public java.lang.String getLocationInfo()
getLocationInfo in interface InputReaderIpublic void close()
close in interface InputReaderIclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.