E - the type of the objects to providepublic class ConvertingCSVParser<E> extends Object implements DataIterator<E>
| Constructor and Description |
|---|
ConvertingCSVParser(String uri,
org.databene.commons.Converter<String[],E> rowConverter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the iterator.
|
Class<E> |
getType()
Returns the type of the iterated elements.
|
DataContainer<E> |
next(DataContainer<E> wrapper)
Returns the container with the next data element if available, otherwise null.
|
static <T> List<T> |
parse(String uri,
org.databene.commons.Converter<String[],T> rowConverter) |
static <T> List<T> |
parse(String uri,
org.databene.commons.Converter<String[],T> rowConverter,
List<T> list) |
public ConvertingCSVParser(String uri, org.databene.commons.Converter<String[],E> rowConverter) throws IOException
IOExceptionpublic Class<E> getType()
DataIteratorgetType in interface DataIterator<E>public DataContainer<E> next(DataContainer<E> wrapper)
DataIteratornext in interface DataIterator<E>wrapper - a DataContainer to receive the iterated dataDataContainer that holds the next element, or null if none is availablepublic void close()
DataIteratorclose in interface Closeableclose in interface AutoCloseableclose in interface DataIterator<E>public static <T> List<T> parse(String uri, org.databene.commons.Converter<String[],T> rowConverter) throws IOException
IOExceptionpublic static <T> List<T> parse(String uri, org.databene.commons.Converter<String[],T> rowConverter, List<T> list) throws IOException
IOExceptionCopyright © 2006–2016 Volker Bergmann. All rights reserved.