www.sdmetrics.com

com.sdmetrics.output
Class DataExporter

java.lang.Object
  extended by com.sdmetrics.output.DataExporter

public class DataExporter
extends java.lang.Object

Exports tabular data in various formats. Tabular data must be provided via the DataTables interface.


Constructor Summary
DataExporter(MessageHandler mh, DataExportConfiguration config)
           
 
Method Summary
 boolean export(DataTables data, java.lang.String file, ExportFormatter format)
          Writes data tables to external file(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataExporter

public DataExporter(MessageHandler mh,
                    DataExportConfiguration config)
Parameters:
mh - Handler for progress and error messages.
config - Output file configuration.
Method Detail

export

public boolean export(DataTables data,
                      java.lang.String file,
                      ExportFormatter format)
Writes data tables to external file(s).

Parameters:
data - The data to export.
file - Path name of the file to write to. For output of tables to separate files, one file is created for each table, extending the file name by a "_tablename" suffix.
format - The format of the output file.
Returns:
true if export was successful, false if an error occurred or user canceled the export

www.sdmetrics.com