commonMain.net.codinux.csv.reader.NamedCsvRowIterator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kCSV-jvm Show documentation
Show all versions of kCSV-jvm Show documentation
Port of FastCSV, an ultra fast and simple RFC 4180 compliant CSV library, for Kotlin Multiplatform
The newest version!
package net.codinux.csv.reader
class NamedCsvRowIterator(
private val csvIterator: CloseableIterator,
private val header: Set
) : CloseableIterator {
override fun hasNext(): Boolean {
return csvIterator.hasNext()
}
override fun next(): NamedCsvRow {
return NamedCsvRow(header, csvIterator.next())
}
override fun close() {
csvIterator.close()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy