public class CSVSource extends Object implements DataSource<String[]>
DataSource implementation that provides for
row-wise or column-wise iteration through CSV files.
Created: 23.11.2011 11:14:54| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_SEPARATOR
The default separator to use
|
protected String |
encoding |
protected boolean |
ignoreEmptyLines |
protected char |
separator |
protected String |
uri |
| Constructor and Description |
|---|
CSVSource(String uri,
char separator,
String encoding,
boolean ignoreEmptyLines,
boolean rowBased) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the data source
|
Class<String[]> |
getType()
Returns the type of the iterated objects.
|
DataIterator<String[]> |
iterator()
Creates a
DataIterator for iterating the available data items. |
public static final char DEFAULT_SEPARATOR
protected String uri
protected char separator
protected String encoding
protected boolean ignoreEmptyLines
public Class<String[]> getType()
DataSourcegetType in interface DataSource<String[]>public DataIterator<String[]> iterator()
DataSourceDataIterator for iterating the available data items.iterator in interface DataSource<String[]>public void close()
DataSourceclose in interface Closeableclose in interface AutoCloseableclose in interface DataSource<String[]>Copyright © 2006–2016 Volker Bergmann. All rights reserved.