Class AbstractFormatter
- java.lang.Object
-
- org.neotropic.util.visual.exporters.AbstractFormatter
-
- Direct Known Subclasses:
CSVFormatter
,XMLExportter
public abstract class AbstractFormatter extends Object
Abstract class to implement different format classes- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description AbstractFormatter(TranslationService ts)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract byte[]
format(String[][] result)
The export action.abstract String
getDisplayName()
To be used as label in the formats combo boxabstract String
getExtension()
Gets the file extension
-
-
-
Constructor Detail
-
AbstractFormatter
public AbstractFormatter(TranslationService ts)
-
-
Method Detail
-
getDisplayName
public abstract String getDisplayName()
To be used as label in the formats combo box- Returns:
- the name to be displayed
-
getExtension
public abstract String getExtension()
Gets the file extension- Returns:
- the file extension (including the dot)
-
format
public abstract byte[] format(String[][] result) throws IOException
The export action.- Parameters:
result
-- Returns:
- the byte array with the formated data
- Throws:
IOException
-
-