public class MalformedXMLParser
extends java.lang.Object
XMLParser
that uses TagSoup[1] to parse
malformed XML
Used by net.sourceforge.jnlp.Parser
[1] http://home.ccil.org/~cowan/XML/tagsoup/Constructor and Description |
---|
MalformedXMLParser() |
Modifier and Type | Method and Description |
---|---|
net.sourceforge.jnlp.Node |
getRootNode(java.io.InputStream input)
Parses the data from an
InputStream to create a XML tree. |
static java.io.InputStream |
xmlizeInputStream(java.io.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
|
public net.sourceforge.jnlp.Node getRootNode(java.io.InputStream input) throws ParseException
InputStream
to create a XML tree.
Returns a Node
representing the root of the tree.input
- the InputStream
to read data fromParseException
- if an exception occurs while parsing the inputpublic static java.io.InputStream xmlizeInputStream(java.io.InputStream original) throws ParseException
original
- original inputInputStream
which can be used to read a well-formed
version of the input XMLParseException
- if an exception occurs while parsing the input