|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.xml.simpleparser.SimpleXMLParser
public final class SimpleXMLParser
A simple XML. This parser is, like the SAX parser, an event based parser, but with much less functionality.
The parser can:
<[CDATA[ ... ]]> construct
\r\n and \r to \n on input, in accordance with the XML Specification, Section 2.11
| Method Summary | |
|---|---|
static java.lang.String |
escapeXML(java.lang.String s,
boolean onlyASCII)
Deprecated. moved to XMLUtil.escapeXML(String, boolean), left
here for the sake of backwards compatibility |
static void |
parse(SimpleXMLDocHandler doc,
java.io.InputStream in)
Parses the XML document firing the events to the handler. |
static void |
parse(SimpleXMLDocHandler doc,
java.io.Reader r)
|
static void |
parse(SimpleXMLDocHandler doc,
SimpleXMLDocHandlerComment comment,
java.io.Reader r,
boolean html)
Parses the XML document firing the events to the handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void parse(SimpleXMLDocHandler doc,
SimpleXMLDocHandlerComment comment,
java.io.Reader r,
boolean html)
throws java.io.IOException
doc - the document handlercomment - the comment handlerr - the document. The encoding is already resolved. The reader is not closedhtml -
java.io.IOException - on error
public static void parse(SimpleXMLDocHandler doc,
java.io.InputStream in)
throws java.io.IOException
doc - the document handlerin - the document. The encoding is deduced from the stream. The stream is not closed
java.io.IOException - on error
public static void parse(SimpleXMLDocHandler doc,
java.io.Reader r)
throws java.io.IOException
doc - r -
java.io.IOException
@Deprecated
public static java.lang.String escapeXML(java.lang.String s,
boolean onlyASCII)
XMLUtil.escapeXML(String, boolean), left
here for the sake of backwards compatibility
s - the string to be escapedonlyASCII - codes above 127 will always be escaped with &#nn; if
true
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||