Class XMLExporter
- java.lang.Object
-
- org.neotropic.util.visual.exporters.AbstractFormatter
-
- org.neotropic.util.visual.exporters.XMLExporter
-
public class XMLExporter extends AbstractFormatter
Implements the logic necessary to export to XML- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description XMLExporter(TranslationService ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
format(String[][] result)
The export action.String
getDisplayName()
To be used as label in the formats combo boxString
getExtension()
Gets the file extension
-
-
-
Constructor Detail
-
XMLExporter
public XMLExporter(TranslationService ts)
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Description copied from class:AbstractFormatter
To be used as label in the formats combo box- Specified by:
getDisplayName
in classAbstractFormatter
- Returns:
- the name to be displayed
-
getExtension
public String getExtension()
Description copied from class:AbstractFormatter
Gets the file extension- Specified by:
getExtension
in classAbstractFormatter
- Returns:
- the file extension (including the dot)
-
format
public byte[] format(String[][] result) throws IOException
Description copied from class:AbstractFormatter
The export action.- Specified by:
format
in classAbstractFormatter
- Returns:
- the byte array with the formated data
- Throws:
IOException
-
-