Class XMLParser

  • Direct Known Subclasses:
    MalformedXMLParser

    public class XMLParser
    extends java.lang.Object
    A gateway to the actual implementation of the parsers.

    Used by net.sourceforge.jnlp.Parser

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CODEBASE  
      private static Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XmlNode getRootNode​(java.io.InputStream input)
      Parses input from an InputStream and returns a Node representing the root of the parse tree.
      java.lang.String preprocessXml​(java.lang.String original)  
      • Methods inherited from class java.lang.Object

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

      • XMLParser

        public XMLParser()
    • Method Detail

      • getRootNode

        public final XmlNode getRootNode​(java.io.InputStream input)
                                  throws ParseException
        Parses input from an InputStream and returns a Node representing the root of the parse tree.
        Parameters:
        input - the InputStream containing the XML
        Returns:
        a XmlNode representing the root of the parsed XML
        Throws:
        ParseException - if parsing fails