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

📄 minimalhtmlwriter.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 tag.</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/MinimalHTMLWriter.html#writeEndTag(java.lang.String)">writeEndTag</A></B>(<A HREF="../../../../java/lang/String.html">String</A>&nbsp;endTag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out an end tag appropriately indented.</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/MinimalHTMLWriter.html#writeHeader()">writeHeader</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out the &lt;head&gt; and &lt;style&gt; tags, and then invokes writeStyles() to write out all the named styles as the content of the &lt;style&gt; tag.</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/MinimalHTMLWriter.html#writeHTMLTags(javax.swing.text.AttributeSet)">writeHTMLTags</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates bold &lt;b&gt;, italic &lt;i&gt;, and &lt;u&gt; tags for the text based on its attribute settings.</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/MinimalHTMLWriter.html#writeImage(javax.swing.text.Element)">writeImage</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Responsible for handling Icon Elements; deliberately unimplemented.</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/MinimalHTMLWriter.html#writeLeaf(javax.swing.text.Element)">writeLeaf</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Responsible for writing out other non-text leaf elements.</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/MinimalHTMLWriter.html#writeNonHTMLAttributes(javax.swing.text.AttributeSet)">writeNonHTMLAttributes</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out the remaining character-level attributes (attributes other than bold, italic, and underline) in an HTML-compliant way.</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/MinimalHTMLWriter.html#writeStartParagraph(javax.swing.text.Element)">writeStartParagraph</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Emits the start tag for a paragraph.</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/MinimalHTMLWriter.html#writeStartTag(java.lang.String)">writeStartTag</A></B>(<A HREF="../../../../java/lang/String.html">String</A>&nbsp;tag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out a start tag appropriately indented.</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/MinimalHTMLWriter.html#writeStyles()">writeStyles</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out all the named styles as the content of the &lt;style&gt; tag.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.AbstractWriter"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#decrIndent()">decrIndent</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getCanWrapLines()">getCanWrapLines</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getCurrentLineLength()">getCurrentLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getDocument()">getDocument</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getElementIterator()">getElementIterator</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getEndOffset()">getEndOffset</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getIndentLevel()">getIndentLevel</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getIndentSpace()">getIndentSpace</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getLineLength()">getLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getLineSeparator()">getLineSeparator</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getStartOffset()">getStartOffset</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getText(javax.swing.text.Element)">getText</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getWriter()">getWriter</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#incrIndent()">incrIndent</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#indent()">indent</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#inRange(javax.swing.text.Element)">inRange</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#isLineEmpty()">isLineEmpty</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#output(char[], int, int)">output</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setCanWrapLines(boolean)">setCanWrapLines</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setCurrentLineLength(int)">setCurrentLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setIndentSpace(int)">setIndentSpace</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setLineLength(int)">setLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setLineSeparator(java.lang.String)">setLineSeparator</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#write(char)">write</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#write(char[], int, int)">write</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#write(java.lang.String)">write</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#writeLineSeparator()">writeLineSeparator</A></CODE></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 =========== --><!-- ========= 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="MinimalHTMLWriter(java.io.Writer, javax.swing.text.StyledDocument)"><!-- --></A><H3>MinimalHTMLWriter</H3><PRE>public <B>MinimalHTMLWriter</B>(<A HREF="../../../../java/io/Writer.html">Writer</A>&nbsp;w,                         <A HREF="../../../../javax/swing/text/StyledDocument.html">StyledDocument</A>&nbsp;doc)</PRE><DL><DD>Creates a new MinimalHTMLWriter.<DD><DL><DT><B>Parameters:</B><DD><CODE>w</CODE> - Writer<DD><CODE>doc</CODE> - StyledDocument</DL></DD></DL><HR><A NAME="MinimalHTMLWriter(java.io.Writer, javax.swing.text.StyledDocument, int, int)"><!-- --></A><H3>MinimalHTMLWriter</H3><PRE>public <B>MinimalHTMLWriter</B>(<A HREF="../../../../java/io/Writer.html">Writer</A>&nbsp;w,                         <A HREF="../../../../javax/swing/text/StyledDocument.html">StyledDocument</A>&nbsp;doc,                         int&nbsp;pos,                         int&nbsp;len)</PRE><DL><DD>Creates a new MinimalHTMLWriter.<DD><DL><DT><B>Parameters:</B><DD><CODE>w</CODE> - Writer<DD><CODE>doc</CODE> - StyledDocument<DD><CODE>pos</CODE> - The location in the document to fetch the   content.<DD><CODE>len</CODE> - The amount to write out.</DL></DD></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="write()"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>()           throws <A HREF="../../../../java/io/IOException.html">IOException</A>,                  <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Generates HTML output from a StyledDocument.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#write()">write</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid            location within the document.</DL></DD></DL><HR><A NAME="writeAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>writeAttributes</H3><PRE>protected void <B>writeAttributes</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)                        throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out all the attributes for the following types:  StyleConstants.ParagraphConstants,  StyleConstants.CharacterConstants,  StyleConstants.FontConstants,  StyleConstants.ColorConstants. The attribute name and value are separated by a colon. Each pair is separated by a semicolon.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#writeAttributes(javax.swing.text.AttributeSet)">writeAttributes</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="text(javax.swing.text.Element)"><!-- --></A><H3>text</H3><PRE>protected void <B>text</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)             throws <A HREF="../../../../java/io/IOException.html">IOException</A>,                    <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Writes out text.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#text(javax.swing.text.Element)">text</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="writeStartTag(java.lang.String)"><!-- --></A><H3>writeStartTag</H3><PRE>protected void <B>writeStartTag</B>(<A HREF="../../../../java/lang/String.html">String</A>&nbsp;tag)                      throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out a start tag appropriately indented.  Also increments the indent level.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="writeEndTag(java.lang.String)"><!-- --></A><H3>writeEndTag</H3><PRE>protected void <B>writeEndTag</B>(<A HREF="../../../../java/lang/String.html">String</A>&nbsp;endTag)                    throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out an end tag appropriately indented.  Also decrements the indent level.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="writeHeader()"><!-- --></A><H3>writeHeader</H3><PRE>protected void <B>writeHeader</B>()                    throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out the &lt;head&gt; and &lt;style&gt; tags, and then invokes writeStyles() to write out all the named styles as the content of the &lt;style&gt; tag.  The content is surrounded by valid HTML comment markers to ensure that the document is viewable in applications/browsers that do not support the tag.<DD><DL>

⌨️ 快捷键说明

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