Class CsvWriter.CsvWriterRecord

  • Enclosing class:
    CsvWriter

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

    The record is ended by calling endRecord().

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int fieldIdx  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CsvWriterRecord()  
    • Field Detail

      • fieldIdx

        private int fieldIdx
    • Constructor Detail

      • CsvWriterRecord

        private CsvWriterRecord()
    • Method Detail

      • writeField

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

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