⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplexmlparser.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<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>&nbsp;doc,                        <A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandlerComment.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandlerComment</A>&nbsp;comment,                        boolean&nbsp;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>&nbsp;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&nbsp;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&nbsp;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>&nbsp;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>&nbsp;doc,                         <A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandlerComment.html" title="interface in com.lowagie.text.xml.simpleparser">SimpleXMLDocHandlerComment</A>&nbsp;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>&nbsp;r,                         boolean&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;s,                               boolean&nbsp;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 &amp;#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[]&nbsp;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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLDocHandlerComment.html" title="interface in com.lowagie.text.xml.simpleparser"><B>PREV CLASS</B></A>&nbsp;&nbsp;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>  &nbsp;&nbsp;<A HREF="SimpleXMLParser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -