@Status(stage=DEVELOPMENT, unitTests=ABSENT) @Review(by="Kees Schotanus",at="2009-09-28") @Review(by="Kees Schotanus",at="2010-10-22",reason="Totally rewrote csv classes") public abstract class AbstractCsvMemoryWriter extends AbstractCsvWriter implements Serializable
Constructor and Description |
---|
AbstractCsvMemoryWriter()
Creates this AbstractCsvMemoryWriter.
|
AbstractCsvMemoryWriter(Character columnSeparator)
Constructs this AbstractCsvMemoryWriter that will use the supplied
columnSeparator as a column separator.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getRows()
Gets the csv rows.
|
void |
writeCsvData()
Writes all the rows returned by
AbstractCsv.getNextRow() to memory. |
void |
writeRow(String row)
Writes a single row of csv data.
|
hasNextRow
getColumnSeparator, getNextRow, getRowSeparator, setColumnSeparator, setRowSeparator
public AbstractCsvMemoryWriter()
public AbstractCsvMemoryWriter(Character columnSeparator)
columnSeparator
- The separator that separates the different
columns.NullPointerException
- When the supplied columnSeparator is null.public List<String> getRows()
public void writeCsvData()
AbstractCsv.getNextRow()
to memory.writeCsvData
in class AbstractCsvWriter
CsvException
- When the csv data could not be written.public void writeRow(String row)
writeRow
in class AbstractCsvWriter
row
- The row to write.
Copyright © 2008–2018. All rights reserved.