public interface Exporter
Modifier and Type | Method and Description |
---|---|
void |
export(DataSet aDataSet,
JComponent aComponent,
OutputStream aStream)
Exports the given data container to the given writer.
|
String[] |
getFilenameExtentions()
Returns the file extensions supported by this exporter.
|
String |
getName()
Returns the name of this exporter.
|
void export(DataSet aDataSet, JComponent aComponent, OutputStream aStream) throws IOException
aDataSet
- the current project with all data to export, can never be
null
;aComponent
- the Swing UI component that is being exported, this is for example
the scroll pane in which the diagram is shown, cannot be
null
;aStream
- the output stream to write the export to, can never be
null
.IOException
- in case of I/O problems.String[] getFilenameExtentions()
For example, when exporting to an image, this method can yield {"gif", "png"} to denote that it supports GIF and PNG files. This knowledge can be used to let the user specify a file name with the correct extension.
null
, but may be
empty.String getName()
null
or empty.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.