Class MalformedXMLParser


  • public class MalformedXMLParser
    extends XMLParser
    An specialized XMLParser that uses TagSoup[1] to parse malformed XML

    Used by net.sourceforge.jnlp.Parser

    [1] http://home.ccil.org/~cowan/XML/tagsoup/

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Logger LOG  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String preprocessXml​(java.lang.String original)
      Reads malformed XML from the InputStream original and returns a new InputStream which can be used to read a well-formed version of the input
      • Methods inherited from class java.lang.Object

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

      • LOG

        private static final Logger LOG
    • Constructor Detail

      • MalformedXMLParser

        public MalformedXMLParser()
    • Method Detail

      • preprocessXml

        public java.lang.String preprocessXml​(java.lang.String original)
                                       throws ParseException
        Reads malformed XML from the InputStream original and returns a new InputStream which can be used to read a well-formed version of the input
        Overrides:
        preprocessXml in class XMLParser
        Parameters:
        original - original input
        Returns:
        an InputStream which can be used to read a well-formed version of the input XML
        Throws:
        ParseException - if an exception occurs while parsing the input