Class CSVFormatter
- java.lang.Object
-
- org.neotropic.util.visual.exporters.AbstractFormatter
-
- org.neotropic.util.visual.exporters.CSVFormatter
-
public class CSVFormatter extends AbstractFormatter
Implements the logic necessary to export to CSV- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static Character
CHARACTER_COMMA
static Character
CHARACTER_PIPE
static Character
CHARACTER_SPACE
static Character
CHARACTER_TAB
static Character
CHARACTER_TILDE
-
Constructor Summary
Constructors Constructor Description CSVFormatter(TranslationService ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
format(String[][] data)
The export action.String
getDisplayName()
To be used as label in the formats combo boxString
getExtension()
Gets the file extension
-
-
-
Constructor Detail
-
CSVFormatter
public CSVFormatter(TranslationService ts)
-
-
Method Detail
-
format
public byte[] format(String[][] data)
Description copied from class:AbstractFormatter
The export action.- Specified by:
format
in classAbstractFormatter
- Returns:
- the byte array with the formated data
-
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)
-
-