Class AbstractFormatter

  • Direct Known Subclasses:
    CSVFormatter, XMLExporter

    public abstract class AbstractFormatter
    extends Object
    Abstract class to implement different format classes
    Author:
    Orlando Paz <orlando.paz@kuwaiba.org>
    • 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