Class FormatterFactory


  • public class FormatterFactory
    extends java.lang.Object
    Author:
    Marc C. Ubaldino, MITRE, ubaldino at mitre dot org
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PKG  
    • Method Summary

      Modifier and Type Method Description
      static ResultsFormatter getInstance​(java.lang.String fmt)
      Supported formats are CSV, WKT, HTML, KML, Shapefile, GDB, JSON
      static java.lang.String[] getSupportedFormats()  
      static boolean isSupported​(java.lang.String fmt)
      Check if this is a known format
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PKG

        public static java.lang.String PKG
    • Constructor Detail

      • FormatterFactory

        public FormatterFactory()
    • Method Detail

      • isSupported

        public static boolean isSupported​(java.lang.String fmt)
        Check if this is a known format
      • getSupportedFormats

        public static java.lang.String[] getSupportedFormats()
      • getInstance

        public static ResultsFormatter getInstance​(java.lang.String fmt)
                                            throws ProcessingException
        Supported formats are CSV, WKT, HTML, KML, Shapefile, GDB, JSON
        Parameters:
        fmt - format name
        Returns:
        Implentation of ResultsFormatter
        Throws:
        ProcessingException - if Java class for formatter is not found