Class RowWriterImpl

java.lang.Object
org.csveed.row.RowWriterImpl
All Implemented Interfaces:
RowWriter

public class RowWriterImpl extends Object implements RowWriter
The Class RowWriterImpl.
  • Constructor Details

    • RowWriterImpl

      public RowWriterImpl(Writer writer)
      Instantiates a new row writer impl.
      Parameters:
      writer - the writer
    • RowWriterImpl

      public RowWriterImpl(Writer writer, RowInstructions rowInstructions)
      Instantiates a new row writer impl.
      Parameters:
      writer - the writer
      rowInstructions - the row instructions
  • Method Details

    • writeRows

      public void writeRows(String[][] rows)
      Description copied from interface: RowWriter
      Writes multiple rows with cells to the table.
      Specified by:
      writeRows in interface RowWriter
      Parameters:
      rows - two-dimensional string array with rows and cells within
    • writeRows

      public void writeRows(Collection<Row> rows)
      Description copied from interface: RowWriter
      Writes multiples rows to the table.
      Specified by:
      writeRows in interface RowWriter
      Parameters:
      rows - collection of rows
    • writeRow

      public Row writeRow(String[] cells)
      Description copied from interface: RowWriter
      Writes the cells of a table row as an individual row.
      Specified by:
      writeRow in interface RowWriter
      Parameters:
      cells - the individual cells of the row
      Returns:
      the row just written
    • writeRow

      public void writeRow(Row row)
      Description copied from interface: RowWriter
      Writes a single row to the Writer.
      Specified by:
      writeRow in interface RowWriter
      Parameters:
      row - row to write to the Writer
    • writeHeader

      public Header writeHeader(String[] headerNames)
      Description copied from interface: RowWriter
      Creates and sets the header of the table.
      Specified by:
      writeHeader in interface RowWriter
      Parameters:
      headerNames - the individual cells of the header row
      Returns:
      the Header, created from the header names
    • writeHeader

      public void writeHeader(Header header)
      Description copied from interface: RowWriter
      Sets the header of the table.
      Specified by:
      writeHeader in interface RowWriter
      Parameters:
      header - the header row
    • getRowInstructions

      public RowInstructions getRowInstructions()
      Description copied from interface: RowWriter
      The set of instructions for dealing with rows.
      Specified by:
      getRowInstructions in interface RowWriter
      Returns:
      row instructions