org.apache.commons.csv.writer
Class CSVWriter
java.lang.Object
org.apache.commons.csv.writer.CSVWriter
public class CSVWriter
- extends java.lang.Object
CSVWriter
- Version:
- $Id: $
- Author:
- Martin van den Bemt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSVWriter
public CSVWriter()
CSVWriter
public CSVWriter(CSVConfig config)
writeRecord
public void writeRecord(java.util.Map map)
writeValue
protected java.lang.String writeValue(CSVField field,
java.lang.String value)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConfig
public CSVConfig getConfig()
- Returns:
- the CVSConfig or null if not present
setConfig
public void setConfig(CSVConfig config)
- Set the CSVConfig
- Parameters:
config
- the CVSConfig
setWriter
public void setWriter(java.io.Writer writer)
- Set the writer to write the CSV file to.
- Parameters:
writer
- the writer.
Copyright © 2011 Apache Software Foundation. All Rights Reserved.