Interface CsvBuilder


public interface CsvBuilder
Builds CsvData.
  • Method Summary

    Modifier and Type
    Method
    Description
    addRow(Row row)
    Adds a row of values to the CSV data.
    addRow(List<Object> values)
    Adds a row of values to the CSV data.
    Builds and returns the CSV data.
  • Method Details

    • addRow

      CsvBuilder addRow(Row row)
      Adds a row of values to the CSV data.
      Parameters:
      row - the row to add. Cannot be null.
      Returns:
      the current builder
    • addRow

      CsvBuilder addRow(List<Object> values)
      Adds a row of values to the CSV data.
      Parameters:
      values - a list of values to add; all instances must be of a type defined by CsvValueType. Cannot be null.
      Returns:
      the current builder
    • build

      CsvData build()
      Builds and returns the CSV data.

      You may continue to use the builder after this is called, but any previously added rows are cleared out.

      Returns:
      the built CsvData