📄 minimalhtmlwriter.html
字号:
<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="writeStyles()"><!-- --></A><H3>writeStyles</H3><PRE>protected void <B>writeStyles</B>() throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out all the named styles as the content of the <style> tag.<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="writeBody()"><!-- --></A><H3>writeBody</H3><PRE>protected void <B>writeBody</B>() throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Iterates over the elements in the document and processes elements based on whether they are branch elements or leaf elements. This method specially handles leaf elements that are text.<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="writeEndParagraph()"><!-- --></A><H3>writeEndParagraph</H3><PRE>protected void <B>writeEndParagraph</B>() throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Emits an end tag for a <p> tag. Before writing out the tag, this method ensures that all other tags that have been opened are appropriately closed off.<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="writeStartParagraph(javax.swing.text.Element)"><!-- --></A><H3>writeStartParagraph</H3><PRE>protected void <B>writeStartParagraph</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Emits the start tag for a paragraph. If the paragraph has a named style associated with it, then this method also generates a class attribute for the <p> tag and sets its value to be the name of the style.<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="writeLeaf(javax.swing.text.Element)"><!-- --></A><H3>writeLeaf</H3><PRE>protected void <B>writeLeaf</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Responsible for writing out other non-text leaf elements.<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="writeImage(javax.swing.text.Element)"><!-- --></A><H3>writeImage</H3><PRE>protected void <B>writeImage</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Responsible for handling Icon Elements; deliberately unimplemented. How to implement this method is an issue of policy. For example, if you're generating an <img> tag, how should you represent the src attribute (the location of the image)? In certain cases it could be a URL, in others it could be read from a stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - element of type StyleConstants.IconElementName</DL></DD></DL><HR><A NAME="writeComponent(javax.swing.text.Element)"><!-- --></A><H3>writeComponent</H3><PRE>protected void <B>writeComponent</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Responsible for handling Component Elements; deliberately unimplemented. How this method is implemented is a matter of policy.</DL><HR><A NAME="isText(javax.swing.text.Element)"><!-- --></A><H3>isText</H3><PRE>protected boolean <B>isText</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem)</PRE><DL><DD>Returns true if the element is a text element.</DL><HR><A NAME="writeContent(javax.swing.text.Element, boolean)"><!-- --></A><H3>writeContent</H3><PRE>protected void <B>writeContent</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem, boolean needsIndenting) throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Writes out the attribute set in an HTML-compliant manner.<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="writeHTMLTags(javax.swing.text.AttributeSet)"><!-- --></A><H3>writeHTMLTags</H3><PRE>protected void <B>writeHTMLTags</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Generates bold <b>, italic <i>, and <u> tags for the text based on its attribute settings.<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="writeNonHTMLAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>writeNonHTMLAttributes</H3><PRE>protected void <B>writeNonHTMLAttributes</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out the remaining character-level attributes (attributes other than bold, italic, and underline) in an HTML-compliant way. Given that attributes such as font family and font size have no direct mapping to HTML tags, a <span> tag is generated and its style attribute is set to contain the list of remaining attributes just like inline styles.<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="inFontTag()"><!-- --></A><H3>inFontTag</H3><PRE>protected boolean <B>inFontTag</B>()</PRE><DL><DD>Returns true if we are currently in a <font> tag.</DL><HR><A NAME="endFontTag()"><!-- --></A><H3>endFontTag</H3><PRE>protected void <B>endFontTag</B>() throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>This is no longer used, instead <span> will be written out. <p> Writes out an end tag for the <font> tag.<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="startFontTag(java.lang.String)"><!-- --></A><H3>startFontTag</H3><PRE>protected void <B>startFontTag</B>(<A HREF="../../../../java/lang/String.html">String</A> style) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>This is no longer used, instead <span> will be written out. <p> Writes out a start tag for the <font> tag. Because font tags cannot be nested, this method closes out any enclosing font tag before writing out a new start tag.<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><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MinimalHTMLWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../javax/swing/text/html/ListView.html"><B>PREV CLASS</B></A> <A HREF="../../../../javax/swing/text/html/ObjectView.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="MinimalHTMLWriter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_javax.swing.text.AbstractWriter">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -