| Constructor and Description |
|---|
CsvReader(AbstractCharConsumer charConsumer) |
CsvReader(AbstractCharConsumer charConsumer,
org.simpleflatmapper.util.Function<? super CellConsumer,? extends CellConsumer> cellConsumerWrapper) |
| Modifier and Type | Method and Description |
|---|---|
CharBuffer |
charBuffer() |
Iterator<String[]> |
iterator() |
<CC extends CellConsumer> |
parseAll(CC cellConsumer)
parse cvs
|
boolean |
parseRow(CellConsumer cellConsumer)
parse cvs
|
<CC extends CellConsumer> |
parseRows(CC cellConsumer,
int limit) |
boolean |
rawParseRow(CellConsumer cellConsumer,
boolean keepRow) |
<RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>> |
read(RH consumer) |
<RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>> |
read(RH consumer,
int limit) |
Iterator<Row> |
rowIterator() |
Stream<Row> |
rowStream() |
void |
skipRows(int n) |
Stream<String[]> |
stream() |
CellConsumer |
wrapConsumer(CellConsumer cellConsumer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CsvReader(AbstractCharConsumer charConsumer)
public CsvReader(AbstractCharConsumer charConsumer, org.simpleflatmapper.util.Function<? super CellConsumer,? extends CellConsumer> cellConsumerWrapper)
public <CC extends CellConsumer> CC parseAll(CC cellConsumer) throws IOException
CC - the cell consumer typecellConsumer - the consumer that the parser will callbackIOException - if an io error occurspublic boolean parseRow(CellConsumer cellConsumer) throws IOException
cellConsumer - the cell consumerIOException - if io error occurspublic boolean rawParseRow(CellConsumer cellConsumer, boolean keepRow) throws IOException
IOExceptionpublic void skipRows(int n)
throws IOException
IOExceptionpublic <CC extends CellConsumer> CC parseRows(CC cellConsumer, int limit) throws IOException
IOExceptionpublic <RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>> RH read(RH consumer) throws IOException
IOExceptionpublic <RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>> RH read(RH consumer, int limit) throws IOException
IOExceptionpublic CellConsumer wrapConsumer(CellConsumer cellConsumer)
public CharBuffer charBuffer()
public Iterator<Row> rowIterator() throws IOException
IOExceptionCopyright © 2020. All rights reserved.