Class CsvWriter.CsvWriterRecord

java.lang.Object
de.siegmar.fastcsv.writer.CsvWriter.CsvWriterRecord
Enclosing class:
CsvWriter

public final class CsvWriter.CsvWriterRecord extends Object
This class is used to write a record field by field.

The record is ended by calling endRecord().

  • Field Details

    • fieldIdx

      private int fieldIdx
  • Constructor Details

    • CsvWriterRecord

      private CsvWriterRecord()
  • Method Details

    • writeField

      public CsvWriter.CsvWriterRecord writeField(String value)
      Writes a field to the current record.
      Parameters:
      value - the field value
      Returns:
      this CsvWriterRecord instance
      Throws:
      UncheckedIOException - if a write-error occurs
    • endRecord

      public CsvWriter endRecord()
      Ends the current record.
      Returns:
      the enclosing CsvWriter instance
      Throws:
      UncheckedIOException - if a write-error occurs