Class CloseableCsvReader
java.lang.Object
org.simpleflatmapper.lightningcsv.CloseableCsvReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<String[]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()iterator()<CC extends CellConsumer>
CCparseAll(CC cellConsumer) booleanparseRow(CellConsumer cellConsumer) <CC extends CellConsumer>
CCparseRows(CC cellConsumer, int limit) <RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>>
RHread(RH handler) <RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>>
RHread(RH handler, int limit) voidskipRows(int n) stream()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CloseableCsvReader
-
-
Method Details
-
parseAll
- Throws:
IOException
-
parseRow
- Throws:
IOException
-
skipRows
- Throws:
IOException
-
parseRows
- Throws:
IOException
-
read
public <RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>> RH read(RH handler) throws IOException - Throws:
IOException
-
read
public <RH extends org.simpleflatmapper.util.CheckedConsumer<String[]>> RH read(RH handler, int limit) throws IOException - Throws:
IOException
-
iterator
-
stream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-