Class WebtopParser


  • @SupportedAll
    public class WebtopParser
    extends Object
    XMLParser provides a way for applications to handle a hook into applications and applications and its server.
    • Constructor Detail

      • WebtopParser

        public WebtopParser()
        Constructs a WebtopParser instance.
      • WebtopParser

        public WebtopParser​(boolean usegeneric)
        Sets whether to use the default GenericNode as the node type.
        Parameters:
        usegeneric - true if GenericNode type is to be used.
    • Method Detail

      • parse

        public Object parse​(String s)
                     throws Exception
        Parses an XML document from a String variable.
        Parameters:
        s - The XML document.
        Throws:
        Exception - if there are unsupported encoding issues.
      • parse

        public Object parse​(InputStream xmlin)
                     throws Exception
        Parses an XML document.
        Parameters:
        xmlin - the XML document.
        Returns:
        the ParseOutput object from walking and processing the node.
        Throws:
        Exception - if there are IO or XML parsing exceptions.
      • register

        public void register​(String elemname,
                             String classname)
        Registers a call back function.
        Parameters:
        elemname - The tag name of this node.
        classname - The call back function.