org.apache.commons.csv.writer
public class CSVWriter extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CSVConfig |
config
The CSV config
|
private java.io.Writer |
writer
The writer
|
Constructor and Description |
---|
CSVWriter() |
CSVWriter(CSVConfig config) |
Modifier and Type | Method and Description |
---|---|
CSVConfig |
getConfig() |
void |
setConfig(CSVConfig config)
Set the CSVConfig
|
void |
setWriter(java.io.Writer writer)
Set the writer to write the CSV file to.
|
void |
writeRecord(java.util.Map map) |
protected java.lang.String |
writeValue(CSVField field,
java.lang.String value) |
private CSVConfig config
private java.io.Writer writer
public CSVWriter()
public CSVWriter(CSVConfig config)
public void writeRecord(java.util.Map map)
protected java.lang.String writeValue(CSVField field, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public CSVConfig getConfig()
public void setConfig(CSVConfig config)
config
- the CVSConfigpublic void setWriter(java.io.Writer writer)
writer
- the writer.