public final class SimpleXMLParser extends Object
The parser can:
<[CDATA[ ... ]]>
construct \r\n
and \r
to \n
on input, in accordance with the XML Specification, Section 2.11 Modifier and Type | Method and Description |
---|---|
static String |
escapeXML(String s, boolean onlyASCII)
Deprecated.
moved to
XMLUtil.escapeXML(String, boolean) , left here for the sake of backwards compatibility
|
static void |
parse(SimpleXMLDocHandler doc, InputStream in)
Parses the XML document firing the events to the handler.
|
static void |
parse(SimpleXMLDocHandler doc, Reader r) |
static void |
parse(SimpleXMLDocHandler doc, SimpleXMLDocHandlerComment comment, Reader r, boolean html)
Parses the XML document firing the events to the handler.
|
public static void parse(SimpleXMLDocHandler doc, SimpleXMLDocHandlerComment comment, Reader r, boolean html) throws IOException
doc
- the document handler
comment
- the comment handler
r
- the document. The encoding is already resolved. The reader is not closed
html
-
IOException
- on error
public static void parse(SimpleXMLDocHandler doc, InputStream in) throws IOException
doc
- the document handler
in
- the document. The encoding is deduced from the stream. The stream is not closed
IOException
- on error
public static void parse(SimpleXMLDocHandler doc, Reader r) throws IOException
doc
-
r
-
IOException
@Deprecated public static String escapeXML(String s, boolean onlyASCII)
XMLUtil.escapeXML(String, boolean)
, left here for the sake of backwards compatibility
s
- the string to be escaped
onlyASCII
- codes above 127 will always be escaped with nn; if true
Copyright © 2016. All rights reserved.