|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.mp3dings.export.AbstractExporter
net.sourceforge.mp3dings.export.CSVExporter
public class CSVExporter
Exports data as a comma separated file (csv, spreadsheet interchange format).
| Constructor Summary | |
|---|---|
CSVExporter()
Creates a new csv exporter with the encoding set to ISO-8859-1. |
|
| Method Summary | |
|---|---|
String |
getBlock(int fileIndex,
Map blockdata)
Produces a single data record for the exported file. |
String |
getExtension()
Returns the file extension for this exporter's target file type. |
protected String |
getFooter(int numEntries)
Produces an empty footer. |
protected String |
getHeader()
Produces a header for the exported csv file consisting of a single line containing the column names separated by the current separator character. |
String |
getName()
Returns a string description of this exporter's target type. |
void |
setSeparator(char delim)
Changes the character that will separate the fields in a record. |
| Methods inherited from class net.sourceforge.mp3dings.export.AbstractExporter |
|---|
export, export, getBlockKeys, getFileFallback, getFileFilter, getFooterData, getFooterKeys, getHeaderData, getHeaderKeys, getImplementations, getKeys, getNumberOfEntries, setEncoding, setFileFallback, setFooterData, setHeaderData, setKeys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVExporter()
| Method Detail |
|---|
public void setSeparator(char delim)
public String getBlock(int fileIndex,
Map blockdata)
separator character. The order of the
entries is determined
by the order of the keys in the array returned by AbstractExporter.getBlockKeys().
getBlock in class AbstractExporterfileIndex - ignoredblockdata - the data of a single record as a map. The map will not
be changed by this method, and can be reused for further calls to this
method.
AbstractExporter.export(Object[] keys, Object[][] data)protected String getHeader()
getHeader in class AbstractExporterprotected String getFooter(int numEntries)
getFooter in class AbstractExporternumEntries - ignored
public String getName()
getName in interface ExportergetName in class AbstractExporterpublic String getExtension()
getExtension in class AbstractExporter
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||