public class FixedWidthLineIterator extends Object implements DataIterator<String[]>
| Constructor and Description |
|---|
FixedWidthLineIterator(Reader reader,
org.databene.commons.format.PadFormat[] formats) |
FixedWidthLineIterator(Reader reader,
org.databene.commons.format.PadFormat[] formats,
boolean ignoreEmptyLines,
String lineFilter) |
FixedWidthLineIterator(String uri,
org.databene.commons.format.PadFormat[] formats) |
FixedWidthLineIterator(String uri,
org.databene.commons.format.PadFormat[] formats,
boolean ignoreEmptyLines,
String encoding,
String lineFilter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the source
|
Class<String[]> |
getType()
Returns the type of the iterated elements.
|
int |
lineCount()
Returns the number of lines iterated so far.
|
DataContainer<String[]> |
next(DataContainer<String[]> wrapper)
Parses a CSV row into an array of Strings
|
public FixedWidthLineIterator(String uri, org.databene.commons.format.PadFormat[] formats) throws IOException
IOExceptionpublic FixedWidthLineIterator(String uri, org.databene.commons.format.PadFormat[] formats, boolean ignoreEmptyLines, String encoding, String lineFilter) throws IOException
IOExceptionpublic FixedWidthLineIterator(Reader reader, org.databene.commons.format.PadFormat[] formats)
public Class<String[]> getType()
DataIteratorgetType in interface DataIterator<String[]>public DataContainer<String[]> next(DataContainer<String[]> wrapper)
next in interface DataIterator<String[]>wrapper - a DataContainer to receive the iterated datapublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface DataIterator<String[]>public int lineCount()
Copyright © 2006–2016 Volker Bergmann. All rights reserved.