📄 simplexmlparser.html
字号:
<DD>the attribute value.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="SimpleXMLParser(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerComment, boolean)"><!-- --></A><H3>SimpleXMLParser</H3><PRE>private <B>SimpleXMLParser</B>(<A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandler.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandler</A> doc, <A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandlerComment.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandlerComment</A> comment, boolean html)</PRE><DL><DD>Creates a Simple XML parser object. Call go(BufferedReader) immediately after creation.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="go(java.io.Reader)"><!-- --></A><H3>go</H3><PRE>private void <B>go</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> r) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Does the actual parsing. Perform this immediately after creating the parser object.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="restoreState()"><!-- --></A><H3>restoreState</H3><PRE>private int <B>restoreState</B>()</PRE><DL><DD>Gets a state from the stack<P><DD><DL><DT><B>Returns:</B><DD>the previous state</DL></DD></DL><HR><A NAME="saveState(int)"><!-- --></A><H3>saveState</H3><PRE>private void <B>saveState</B>(int s)</PRE><DL><DD>Adds a state to the stack.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - a state to add to the stack</DL></DD></DL><HR><A NAME="flush()"><!-- --></A><H3>flush</H3><PRE>private void <B>flush</B>()</PRE><DL><DD>Flushes the text that is currently in the buffer. The text can be ignored, added to the document as content or as comment,... depending on the current state.<P><DD><DL></DL></DD></DL><HR><A NAME="initTag()"><!-- --></A><H3>initTag</H3><PRE>private void <B>initTag</B>()</PRE><DL><DD>Initialized the tag name and attributes.<P><DD><DL></DL></DD></DL><HR><A NAME="doTag()"><!-- --></A><H3>doTag</H3><PRE>private void <B>doTag</B>()</PRE><DL><DD>Sets the name of the tag.<P><DD><DL></DL></DD></DL><HR><A NAME="processTag(boolean)"><!-- --></A><H3>processTag</H3><PRE>private void <B>processTag</B>(boolean start)</PRE><DL><DD>processes the tag.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - if true we are dealing with a tag that has just been opened; if false we are closing a tag.</DL></DD></DL><HR><A NAME="throwException(java.lang.String)"><!-- --></A><H3>throwException</H3><PRE>private void <B>throwException</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Throws an exception<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="parse(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerComment, java.io.Reader, boolean)"><!-- --></A><H3>parse</H3><PRE>public static void <B>parse</B>(<A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandler.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandler</A> doc, <A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandlerComment.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandlerComment</A> comment, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> r, boolean html) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Parses the XML document firing the events to the handler.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - the document handler<DD><CODE>r</CODE> - the document. The encoding is already resolved. The reader is not closed<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error</DL></DD></DL><HR><A NAME="parse(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, java.io.InputStream)"><!-- --></A><H3>parse</H3><PRE>public static void <B>parse</B>(<A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandler.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandler</A> doc, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> in) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Parses the XML document firing the events to the handler.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - the document handler<DD><CODE>in</CODE> - the document. The encoding is deduced from the stream. The stream is not closed<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error</DL></DD></DL><HR><A NAME="getDeclaredEncoding(java.lang.String)"><!-- --></A><H3>getDeclaredEncoding</H3><PRE>private static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDeclaredEncoding</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> decl)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="parse(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, java.io.Reader)"><!-- --></A><H3>parse</H3><PRE>public static void <B>parse</B>(<A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandler.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandler</A> doc, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> r) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="escapeXML(java.lang.String, boolean)"><!-- --></A><H3>escapeXML</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>escapeXML</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s, boolean onlyASCII)</PRE><DL><DD>Escapes a string with the appropriated XML codes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the string to be escaped<DD><CODE>onlyASCII</CODE> - codes above 127 will always be escaped with &#nn; if <CODE>true</CODE><DT><B>Returns:</B><DD>the escaped string</DL></DD></DL><HR><A NAME="getEncodingName(byte[])"><!-- --></A><H3>getEncodingName</H3><PRE>private static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getEncodingName</B>(byte[] b4)</PRE><DL><DD>Returns the IANA encoding name that is auto-detected from the bytes specified, with the endian-ness of that encoding where appropriate. (method found in org.apache.xerces.impl.XMLEntityManager, originally published by the Apache Software Foundation under the Apache Software License; now being used in iText under the MPL)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>b4</CODE> - The first four bytes of the input.<DT><B>Returns:</B><DD>an IANA-encoding string</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandlerComment.html" title="interface in com.lowagie.text.xml.simpleparser"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/lowagie/text/xml/simpleparser/SimpleXMLParser.html" target="_top"><B>FRAMES</B></A> <A HREF="SimpleXMLParser.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -