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 CharacterCHARACTER_COMMAstatic CharacterCHARACTER_PIPEstatic CharacterCHARACTER_SPACEstatic CharacterCHARACTER_TABstatic CharacterCHARACTER_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.StringgetDisplayName()To be used as label in the formats combo boxStringgetExtension()Gets the file extension
-
-
-
Constructor Detail
-
CSVFormatter
public CSVFormatter(TranslationService ts)
-
-
Method Detail
-
format
public byte[] format(String[][] data)
Description copied from class:AbstractFormatterThe export action.- Specified by:
formatin classAbstractFormatter- Returns:
- the byte array with the formated data
-
getDisplayName
public String getDisplayName()
Description copied from class:AbstractFormatterTo be used as label in the formats combo box- Specified by:
getDisplayNamein classAbstractFormatter- Returns:
- the name to be displayed
-
getExtension
public String getExtension()
Description copied from class:AbstractFormatterGets the file extension- Specified by:
getExtensionin classAbstractFormatter- Returns:
- the file extension (including the dot)
-
-