public class DataExporter
extends java.lang.Object
| Constructor and Description |
|---|
DataExporter(IExporterProvider exporterProvider)
Constructor: at least one exporter must be provided.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exportToFile(java.lang.String fileName,
java.lang.Object data)
Export data to a given file.
|
AbstractExporter |
getExporter(java.lang.String ext)
Return the exporter linked to a given file extension.
|
java.lang.String[] |
getSupportedDescription()
Return list of available extension in accordance with the format for file dialog
|
java.lang.String[] |
getSupportedExtension()
Return list of available extension in accordance with the format for file dialog
|
public DataExporter(IExporterProvider exporterProvider)
exporterProvider - the exporter ProviderIExporterProviderpublic boolean exportToFile(java.lang.String fileName,
java.lang.Object data)
fileName - the full file pathdata - the data. format must be compliant with the provided exporters.true whether file was created, false otherwiseAbstractExporter,
IExporterProviderpublic AbstractExporter getExporter(java.lang.String ext)
ext - the extension to found in available exporter.AbstractExporter whether found, null otherwise.public java.lang.String[] getSupportedExtension()
public java.lang.String[] getSupportedDescription()