@Status(stage=DEVELOPMENT, unitTests=PARTIAL) @Review(by="Kees Schotanus",at="2009-09-28") @Review(by="Kees Schotanus",at="2010-10-22",reason="Totally rewrote csv classes") public abstract class AbstractCsvWriter extends AbstractCsv
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCsvWriter()
Default constructor that will use a comma as the column separator and the
platform's line.separator as a row separator.
|
|
AbstractCsvWriter(Character columnSeparator)
Constructs this AbstractCsvWriter that will use the supplied
columnSeparator as a column separator and the platform's line.separator
as a row separator.
|
|
AbstractCsvWriter(Character columnSeparator,
String rowSeparator)
Constructs this AbstractCsvWriter that will use the supplied
columnSeparator as a column separator and the supplied rowSeparator as a
row separator.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
hasNextRow()
Determines whether a next row of csv data exists.
|
abstract void |
writeCsvData()
Writes all of the csv data.
|
abstract void |
writeRow(String row)
Writes a single row of csv data.
|
getColumnSeparator, getNextRow, getRowSeparator, setColumnSeparator, setRowSeparatorprotected AbstractCsvWriter()
public AbstractCsvWriter(Character columnSeparator)
columnSeparator - The separator that separates the different
columns.NullPointerException - When the supplied columnSeparator is null.public AbstractCsvWriter(Character columnSeparator, String rowSeparator)
columnSeparator - The separator that separates the different
columns.rowSeparator - The separator that separates the different rows.NullPointerException - When either the supplied columnSeparator or
rowSeparator is null.public abstract void writeCsvData()
hasNextRow() and AbstractCsv.getNextRow().CsvException - When the csv data could not be written.public abstract boolean hasNextRow()
public abstract void writeRow(String row)
row - The row to write.
NullPointerException - When the supplied row is null.CsvException - When the csv data could not be written.Copyright © 2008–2017. All rights reserved.