Class DOMParser.Factory

  • Enclosing class:
    DOMParser

    public static class DOMParser.Factory
    extends ExtensionPointDOMParser
    a factory for DOMParsers. This factory defines an
    extension point for DOMParsers. Typically this is for parsing xml files,
    however, anything that parses from some stream or file into a DOM structure
    can be a DOMParser.
    • Constructor Detail

      • Factory

        public Factory​(long cPtr,
                       boolean cMemoryOwn)
      • Factory

        public Factory()
        constructor
    • Method Detail

      • getDOMParser

        public static DOMParserPtr getDOMParser​(java.lang.String format)
        get a DOM parser for a specific file format
        Parameters:
        format - [in] the extension identifying the file format (without initial dot).
        Returns:
        a parser if found, false otherwise.
      • hasDOMParser

        public static boolean hasDOMParser​(java.lang.String format)
        check if the factory has a DOM parser for a specific format
        Parameters:
        format - [in] file ending like: xml, ini, txt...
        Returns:
      • getSupportedFormats

        public static vector_s getSupportedFormats()
        get a list of supported formats
        Returns: