java.lang.Object
org.csveed.row.RowWriterImpl
-
Constructor Summary
ConstructorDescriptionRowWriterImpl
(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.void
writeHeader
(Header header) Sets the header of the table.Writes the cells of a table row as an individual row.void
Writes a single row to the Writer.void
Writes multiple rows with cells to the table.void
writeRows
(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
-
writeRows
Description copied from interface:RowWriter
Writes multiples rows to the table. -
writeRow
-
writeRow
-
writeHeader
Description copied from interface:RowWriter
Creates and sets the header of the table.- Specified by:
writeHeader
in interfaceRowWriter
- Parameters:
headerNames
- the individual cells of the header row- Returns:
- the Header, created from the header names
-
writeHeader
Description copied from interface:RowWriter
Sets the header of the table.- Specified by:
writeHeader
in interfaceRowWriter
- Parameters:
header
- the header row
-
getRowInstructions
Description copied from interface:RowWriter
The set of instructions for dealing with rows.- Specified by:
getRowInstructions
in interfaceRowWriter
- Returns:
- row instructions
-