Package net.sourceforge.jnlp
Class MalformedXMLParser
java.lang.Object
net.sourceforge.jnlp.MalformedXMLParser
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/-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRootNode
(InputStream input) Parses the data from anInputStream
to create a XML tree.static InputStream
xmlizeInputStream
(InputStream 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
-
Constructor Details
-
MalformedXMLParser
public MalformedXMLParser()
-
-
Method Details
-
getRootNode
Parses the data from anInputStream
to create a XML tree. Returns aNode
representing the root of the tree.- Parameters:
input
- theInputStream
to read data from- Returns:
- root node of document
- Throws:
ParseException
- if an exception occurs while parsing the input
-
xmlizeInputStream
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- 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
-