All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.net.codinux.csv.reader.NamedCsvRowIterator.kt Maven / Gradle / Ivy

Go to download

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