📄 simplexmlparser.html
字号:
<TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#QUOTE">QUOTE</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#quoteCharacter">quoteCharacter</A></B></CODE><BR> the quote character that was used to open the quote.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#SINGLE_TAG">SINGLE_TAG</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Stack.html?is-external=true" title="class or interface in java.util">Stack</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#stack">stack</A></B></CODE><BR> the state stack</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#state">state</A></B></CODE><BR> the current state</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#tag">tag</A></B></CODE><BR> current tagname</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#TAG_ENCOUNTERED">TAG_ENCOUNTERED</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#TAG_EXAMINED">TAG_EXAMINED</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#text">text</A></B></CODE><BR> current text (whatever is encountered between tags)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#TEXT">TEXT</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#UNKNOWN">UNKNOWN</A></B></CODE><BR> possible states</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private </CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#SimpleXMLParser(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerComment, boolean)">SimpleXMLParser</A></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)</CODE><BR> Creates a Simple XML parser object.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#doTag()">doTag</A></B>()</CODE><BR> Sets the name of the tag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#escapeXML(java.lang.String, boolean)">escapeXML</A></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)</CODE><BR> Escapes a string with the appropriated XML codes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#flush()">flush</A></B>()</CODE><BR> Flushes the text that is currently in the buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#getDeclaredEncoding(java.lang.String)">getDeclaredEncoding</A></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)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#getEncodingName(byte[])">getEncodingName</A></B>(byte[] b4)</CODE><BR> Returns the IANA encoding name that is auto-detected from the bytes specified, with the endian-ness of that encoding where appropriate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#go(java.io.Reader)">go</A></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)</CODE><BR> Does the actual parsing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#initTag()">initTag</A></B>()</CODE><BR> Initialized the tag name and attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#parse(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, java.io.InputStream)">parse</A></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)</CODE><BR> Parses the XML document firing the events to the handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#parse(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, java.io.Reader)">parse</A></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)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#parse(com.lowagie.text.xml.simpleparser.SimpleXMLDocHandler, com.lowagie.text.xml.simpleparser.SimpleXMLDocHandlerComment, java.io.Reader, boolean)">parse</A></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)</CODE><BR> Parses the XML document firing the events to the handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#processTag(boolean)">processTag</A></B>(boolean start)</CODE><BR> processes the tag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#restoreState()">restoreState</A></B>()</CODE><BR> Gets a state from the stack</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#saveState(int)">saveState</A></B>(int s)</CODE><BR> Adds a state to the stack.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/xml/simpleparser/SimpleXMLParser.html#throwException(java.lang.String)">throwException</A></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)</CODE><BR> Throws an exception</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="UNKNOWN"><!-- --></A><H3>UNKNOWN</H3><PRE>private static final int <B>UNKNOWN</B></PRE><DL><DD>possible states<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.xml.simpleparser.SimpleXMLParser.UNKNOWN">Constant Field Values</A></DL></DL><HR><A NAME="TEXT"><!-- --></A><H3>TEXT</H3><PRE>private static final int <B>TEXT</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.xml.simpleparser.SimpleXMLParser.TEXT">Constant Field Values</A></DL></DL><HR><A NAME="TAG_ENCOUNTERED"><!-- --></A><H3>TAG_ENCOUNTERED</H3><PRE>private static final int <B>TAG_ENCOUNTERED</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.xml.simpleparser.SimpleXMLParser.TAG_ENCOUNTERED">Constant Field Values</A></DL></DL><HR><A NAME="EXAMIN_TAG"><!-- --></A><H3>EXAMIN_TAG</H3><PRE>private static final int <B>EXAMIN_TAG</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.xml.simpleparser.SimpleXMLParser.EXAMIN_TAG">Constant Field Values</A></DL></DL><HR><A NAME="TAG_EXAMINED"><!-- --></A><H3>TAG_EXAMINED</H3><PRE>private static final int <B>TAG_EXAMINED</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.xml.simpleparser.SimpleXMLParser.TAG_EXAMINED">Constant Field Values</A></DL></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -