public class DataExporter
extends java.lang.Object
DataTables interface.| Constructor and Description |
|---|
DataExporter(MessageHandler mh,
DataExportConfiguration config)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
export(DataTables data,
java.lang.String file,
ExportFormatter format)
Writes data tables to external file(s).
|
public DataExporter(MessageHandler mh, DataExportConfiguration config)
mh - Handler for progress and error messages.config - Output file configuration.public boolean export(DataTables data, java.lang.String file, ExportFormatter format)
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.true if export was successful, false if
an error occurred or user canceled the export