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

📄 parser.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleEndTag(javax.swing.text.html.parser.TagElement)">handleEndTag</A></B>(<A HREF="../../../../../javax/swing/text/html/parser/TagElement.html">TagElement</A>&nbsp;tag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when an end tag is encountered.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleEOFInComment()">handleEOFInComment</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleError(int, java.lang.String)">handleError</A></B>(int&nbsp;ln,            <A HREF="../../../../../java/lang/String.html">String</A>&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An error has occurred.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleStartTag(javax.swing.text.html.parser.TagElement)">handleStartTag</A></B>(<A HREF="../../../../../javax/swing/text/html/parser/TagElement.html">TagElement</A>&nbsp;tag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a start tag is encountered.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleText(char[])">handleText</A></B>(char[]&nbsp;text)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when PCDATA is encountered.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleTitle(char[])">handleTitle</A></B>(char[]&nbsp;text)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when an HTML title tag is encountered.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../../javax/swing/text/html/parser/TagElement.html">TagElement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#makeTag(javax.swing.text.html.parser.Element)">makeTag</A></B>(<A HREF="../../../../../javax/swing/text/html/parser/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../../javax/swing/text/html/parser/TagElement.html">TagElement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#makeTag(javax.swing.text.html.parser.Element, boolean)">makeTag</A></B>(<A HREF="../../../../../javax/swing/text/html/parser/Element.html">Element</A>&nbsp;elem,        boolean&nbsp;fictional)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Makes a TagElement.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#markFirstTime(javax.swing.text.html.parser.Element)">markFirstTime</A></B>(<A HREF="../../../../../javax/swing/text/html/parser/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marks the first time a tag has been seen in a document</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#parse(java.io.Reader)">parse</A></B>(<A HREF="../../../../../java/io/Reader.html">Reader</A>&nbsp;in)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse an HTML stream, given a DTD.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#parseDTDMarkup()">parseDTDMarkup</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses th Document Declaration Type markup declaration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#parseMarkupDeclarations(java.lang.StringBuffer)">parseMarkupDeclarations</A></B>(<A HREF="../../../../../java/lang/StringBuffer.html">StringBuffer</A>&nbsp;strBuff)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse markup declarations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#startTag(javax.swing.text.html.parser.TagElement)">startTag</A></B>(<A HREF="../../../../../javax/swing/text/html/parser/TagElement.html">TagElement</A>&nbsp;tag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle a start tag.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="dtd"><!-- --></A><H3>dtd</H3><PRE>protected <A HREF="../../../../../javax/swing/text/html/parser/DTD.html">DTD</A> <B>dtd</B></PRE><DL></DL><HR><A NAME="strict"><!-- --></A><H3>strict</H3><PRE>protected boolean <B>strict</B></PRE><DL><DD>This flag determines whether or not the Parser will be strict in enforcing SGML compatibility.  If false, it will be lenient with certain common classes of erroneous HTML constructs. Strict or not, in either case an error will be recorded.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Parser(javax.swing.text.html.parser.DTD)"><!-- --></A><H3>Parser</H3><PRE>public <B>Parser</B>(<A HREF="../../../../../javax/swing/text/html/parser/DTD.html">DTD</A>&nbsp;dtd)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getCurrentLine()"><!-- --></A><H3>getCurrentLine</H3><PRE>protected int <B>getCurrentLine</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the line number of the line currently being parsed</DL></DD></DL><HR><A NAME="makeTag(javax.swing.text.html.parser.Element, boolean)"><!-- --></A><H3>makeTag</H3><PRE>protected <A HREF="../../../../../javax/swing/text/html/parser/TagElement.html">TagElement</A> <B>makeTag</B>(<A HREF="../../../../../javax/swing/text/html/parser/Element.html">Element</A>&nbsp;elem,                             boolean&nbsp;fictional)</PRE><DL><DD>Makes a TagElement.<DD><DL></DL></DD></DL><HR><A NAME="makeTag(javax.swing.text.html.parser.Element)"><!-- --></A><H3>makeTag</H3><PRE>protected <A HREF="../../../../../javax/swing/text/html/parser/TagElement.html">TagElement</A> <B>makeTag</B>(<A HREF="../../../../../javax/swing/text/html/parser/Element.html">Element</A>&nbsp;elem)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>protected <A HREF="../../../../../javax/swing/text/SimpleAttributeSet.html">SimpleAttributeSet</A> <B>getAttributes</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="flushAttributes()"><!-- --></A><H3>flushAttributes</H3><PRE>protected void <B>flushAttributes</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="handleText(char[])"><!-- --></A><H3>handleText</H3><PRE>protected void <B>handleText</B>(char[]&nbsp;text)</PRE><DL><DD>Called when PCDATA is encountered.<DD><DL></DL></DD></DL><HR><A NAME="handleTitle(char[])"><!-- --></A><H3>handleTitle</H3><PRE>protected void <B>handleTitle</B>(char[]&nbsp;text)</PRE><DL><DD>Called when an HTML title tag is encountered.<DD><DL></DL></DD></DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -