java.lang.Object
org.csveed.row.RowWriterImpl
- All Implemented Interfaces:
RowWriter
The Class RowWriterImpl.
-
Constructor Summary
ConstructorsConstructorDescriptionRowWriterImpl(Writer writer) Instantiates a new row writer impl.RowWriterImpl(Writer writer, RowInstructions rowInstructions) Instantiates a new row writer impl. -
Method Summary
Modifier and TypeMethodDescriptionThe set of instructions for dealing with rows.writeHeader(String[] headerNames) Creates and sets the header of the table.voidwriteHeader(Header header) Sets the header of the table.Writes the cells of a table row as an individual row.voidWrites a single row to the Writer.voidWrites multiple rows with cells to the table.voidwriteRows(Collection<Row> rows) Writes multiples rows to the table.
-
Constructor Details
-
RowWriterImpl
Instantiates a new row writer impl.- Parameters:
writer- the writer
-
RowWriterImpl
Instantiates a new row writer impl.- Parameters:
writer- the writerrowInstructions- the row instructions
-
-
Method Details
-
writeRows
Description copied from interface:RowWriterWrites multiple rows with cells to the table. -
writeRows
Description copied from interface:RowWriterWrites multiples rows to the table. -
writeRow
Description copied from interface:RowWriterWrites the cells of a table row as an individual row. -
writeRow
Description copied from interface:RowWriterWrites a single row to the Writer. -
writeHeader
Description copied from interface:RowWriterCreates and sets the header of the table.- Specified by:
writeHeaderin interfaceRowWriter- Parameters:
headerNames- the individual cells of the header row- Returns:
- the Header, created from the header names
-
writeHeader
Description copied from interface:RowWriterSets the header of the table.- Specified by:
writeHeaderin interfaceRowWriter- Parameters:
header- the header row
-
getRowInstructions
Description copied from interface:RowWriterThe set of instructions for dealing with rows.- Specified by:
getRowInstructionsin interfaceRowWriter- Returns:
- row instructions
-