📄 parser.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> tag)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleEOFInComment()">handleEOFInComment</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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 ln, <A HREF="../../../../../java/lang/String.html">String</A> msg)</CODE><BR> An error has occurred.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> tag)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleText(char[])">handleText</A></B>(char[] text)</CODE><BR> Called when PCDATA is encountered.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../javax/swing/text/html/parser/Parser.html#handleTitle(char[])">handleTitle</A></B>(char[] text)</CODE><BR> 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 <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> elem)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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> elem, boolean fictional)</CODE><BR> Makes a TagElement.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> elem)</CODE><BR> 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> 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> in)</CODE><BR> 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> <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> 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 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> strBuff)</CODE><BR> Parse markup declarations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected 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> tag)</CODE><BR> Handle a start tag.</TD></TR></TABLE> <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> <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> 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> elem, boolean 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> 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[] 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[] 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 + -