<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:02:01 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  MinimalHTMLWriter
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/MinimalHTMLWriter.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../javax/swing/text/html/ListView.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../javax/swing/text/html/ObjectView.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="MinimalHTMLWriter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.AbstractWriter">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing.text.html</FONT>
<BR>
Class  MinimalHTMLWriter</H2>
<PRE>
java.lang.Object
  |
  +--<A HREF="../../../../javax/swing/text/AbstractWriter.html">javax.swing.text.AbstractWriter</A>
        |
        +--<B>javax.swing.text.html.MinimalHTMLWriter</B>
</PRE>
<HR>
<DL>
<DT>public class <B>MinimalHTMLWriter</B><DT>extends <A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></DL>

<P>
MinimalHTMLWriter is a fallback writer used by the
 HTMLEditorKit to write out HTML for a document that
 is a not produced by the EditorKit.

 The format for the document is:
 <html>
   <head>
     <style>
        <!-- list of named styles
         p.normal {
            font-family: SansSerif;
	      margin-height: 0;
	      font-size: 14
	   }
        -->
      </style>
   </head>
   <body>
    <p style=normal>
     <b>bold, italic and underline attributes
        of the run are emitted as html tags.
        The remaining attributes are emitted as
        part  style attribute of a <font> tag.
        The syntax is similar to inline styles.</b>
    </p>
   </body>
 </html>
<P>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->

<A NAME="fields_inherited_from_class_javax.swing.text.AbstractWriter"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#NEWLINE">NEWLINE</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/MinimalHTMLWriter.html#MinimalHTMLWriter(java.io.Writer, javax.swing.text.StyledDocument)">MinimalHTMLWriter</A></B>(java.io.Writer&nbsp;w,
                  <A HREF="../../../../javax/swing/text/StyledDocument.html">StyledDocument</A>&nbsp;doc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new MinimalHTMLWriter.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/MinimalHTMLWriter.html#MinimalHTMLWriter(java.io.Writer, javax.swing.text.StyledDocument, int, int)">MinimalHTMLWriter</A></B>(java.io.Writer&nbsp;w,
                  <A HREF="../../../../javax/swing/text/StyledDocument.html">StyledDocument</A>&nbsp;doc,
                  int&nbsp;pos,
                  int&nbsp;len)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new MinimalHTMLWriter.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="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#endFontTag()">endFontTag</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out an end tag for the <font> tag.</TD>
</TR>
<TR BGCOLOR="white" ID="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/MinimalHTMLWriter.html#inFontTag()">inFontTag</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if we are currently in a <font> tag.</TD>
</TR>
<TR BGCOLOR="white" ID="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/MinimalHTMLWriter.html#isText(javax.swing.text.Element)">isText</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;Returns true if the element is a text element.</TD>
</TR>
<TR BGCOLOR="white" ID="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#startFontTag(java.lang.String)">startFontTag</A></B>(java.lang.String&nbsp;style)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out a start tag for the <font> tag.</TD>
</TR>
<TR BGCOLOR="white" ID="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#text(javax.swing.text.Element)">text</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;This method is responsible for writing text out.</TD>
</TR>
<TR BGCOLOR="white" ID="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/MinimalHTMLWriter.html#write()">write</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is responsible for generating html output
 from a StyledDocument.</TD>
</TR>
<TR BGCOLOR="white" ID="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#writeAttributes(javax.swing.text.AttributeSet)">writeAttributes</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;This method writes out all the attributes that are for the
 following types:
  StyleConstants.ParagraphConstants
  StyleConstants.CharacterConstants
  StyleConstants.FontConstants
  StyleConstants.ColorConstants.</TD>
</TR>
<TR BGCOLOR="white" ID="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#writeBody()">writeBody</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method iterates over the elements in the document
 and processes elements based on whether they are
 branch elements or leaf elements.</TD>
</TR>
<TR BGCOLOR="white" ID="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#writeComponent(javax.swing.text.Element)">writeComponent</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 Component Elements.</TD>
</TR>
<TR BGCOLOR="white" ID="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#writeContent(javax.swing.text.Element, boolean)">writeContent</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem,
             boolean&nbsp;needsIndenting)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method handles writing out text.</TD>
</TR>
<TR BGCOLOR="white" ID="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#writeEndParagraph()">writeEndParagraph</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method handles emiting an end tag for a 
 tag.</TD>
</TR>
<TR BGCOLOR="white" ID="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>(java.lang.String&nbsp;endTag)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method writes out a end tag approrirately
 indented.</TD>
</TR>
<TR BGCOLOR="white" ID="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;This method writes out the <head> and <style>
 tags.</TD>
</TR>
<TR BGCOLOR="white" ID="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;This method is responsible for generating
 bold <b>, italics <i> and <u> tags for the
 text based on its attribute settings.</TD>
</TR>
<TR BGCOLOR="white" ID="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.</TD>
</TR>
<TR BGCOLOR="white" ID="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" ID="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;This method is responsible for writing out the remaining
 character level attributes (i,e attributes other than bold
 italics and underlie) in an html compliant way.</TD>
</TR>
<TR BGCOLOR="white" ID="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;This method emits the start tag for a paragraph.</TD>
</TR>
<TR BGCOLOR="white" ID="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>(java.lang.String&nbsp;tag)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method writes out a start tag approrirately
 indented.</TD>
</TR>
<TR BGCOLOR="white" ID="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;This method writes out all the named styles as the
 content of the <style> 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" ID="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" ID="TableRowColor">
<TD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#decrIndent()">decrIndent</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#getText(javax.swing.text.Element)">getText</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#setIndentSpace(int)">setIndentSpace</A>, 
<A HREF="../../../../javax/swing/text/AbstractWriter.html#setLineLength(int)">setLineLength</A>, 
<A HREF="../../../../javax/swing/text/AbstractWriter.html#write(char)">write</A>, 
<A HREF="../../../../javax/swing/text/AbstractWriter.html#write(java.lang.String)">write</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" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait</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" ID="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>(java.io.Writer&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>a</CODE> - Writer<DD><CODE>an</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>(java.io.Writer&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>a</CODE> - Writer<DD><CODE>an</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" ID="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 java.io.IOException,
                  <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>This method is responsible for generating html output
 from a StyledDocument.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error<DD><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - if pos represents an invalid
            location within the document.<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/AbstractWriter.html#write()">write</A> in class <A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></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 java.io.IOException</PRE>
<DL>
<DD>This method writes out all the attributes that are for the
 following types:
  StyleConstants.ParagraphConstants
  StyleConstants.CharacterConstants
  StyleConstants.FontConstants
  StyleConstants.ColorConstants.
 The attribute name and value are separated by a colon
 And each pair is separatd by a semicolon.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/AbstractWriter.html#writeAttributes(javax.swing.text.AttributeSet)">writeAttributes</A> in class <A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></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 java.io.IOException,
                    <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>This method is responsible for writing text out.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/AbstractWriter.html#text(javax.swing.text.Element)">text</A> in class <A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></DL>
</DD>
</DL>
<HR>

<A NAME="writeStartTag(java.lang.String)"><!-- --></A><H3>
writeStartTag</H3>
<PRE>
protected void <B>writeStartTag</B>(java.lang.String&nbsp;tag)
                      throws java.io.IOException</PRE>
<DL>
<DD>This method writes out a start tag approrirately
 indented.  It also increments the indent level.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - 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>(java.lang.String&nbsp;endTag)
                    throws java.io.IOException</PRE>
<DL>
<DD>This method writes out a end tag approrirately
 indented.  It also decrements the indent level.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="writeHeader()"><!-- --></A><H3>
writeHeader</H3>
<PRE>
protected void <B>writeHeader</B>()
                    throws java.io.IOException</PRE>
<DL>
<DD>This method writes out the <head> and <style>
 tags.  It Then invokes writeStyles() to write
 out all the named styles as the content of the
 <style> 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>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="writeStyles()"><!-- --></A><H3>
writeStyles</H3>
<PRE>
protected void <B>writeStyles</B>()
                    throws java.io.IOException</PRE>
<DL>
<DD>This method writes out all the named styles as the
 content of the <style> tag.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="writeBody()"><!-- --></A><H3>
writeBody</H3>
<PRE>
protected void <B>writeBody</B>()
                  throws java.io.IOException,
                         <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>This method iterates over the elements in the document
 and processes elements based on whether they are
 branch elements or leaf elements.  It specially handles
 leaf elements that are text.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="writeEndParagraph()"><!-- --></A><H3>
writeEndParagraph</H3>
<PRE>
protected void <B>writeEndParagraph</B>()
                          throws java.io.IOException</PRE>
<DL>
<DD>This method handles emiting an end tag for a <p>
 tag.  Prior to writing out the tag, it ensures
 that all other tags that have been opened are
 appropriately closed off.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - 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>&nbsp;elem)
                            throws java.io.IOException</PRE>
<DL>
<DD>This method emits the start tag for a paragraph. If
 the paragraph has a named style associated with it,
 then it also generates a class attribute for the
 <p> tag and set's its value to be the name of the
 style.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - 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>&nbsp;elem)
                  throws java.io.IOException</PRE>
<DL>
<DD>Responsible for writing out other non text leaf
 elements.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - 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>&nbsp;elem)
                   throws java.io.IOException</PRE>
<DL>
<DD>Responsible for handling Icon Elements.  This method is
 deliberatly unimplemented.  How to implement it is more
 an issue of policy -- for example, if one was to generate
 an <img> tag, the question does arise about how one would
 represent the src attribute, i.e 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>an</CODE> - element fo 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>&nbsp;elem)
                       throws java.io.IOException</PRE>
<DL>
<DD>Responsible for handling Component Elements.  How this
 method is implemented is a matter of policy.  Hence left
 unimplemented.</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>&nbsp;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>&nbsp;elem,
                            boolean&nbsp;needsIndenting)
                     throws java.io.IOException,
                            <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>This method handles writing out text. It invokes methods
 that are responsible for writing out its attribute set
 in a manner that is html compliant.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error<DD><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - 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>&nbsp;attr)
                      throws java.io.IOException</PRE>
<DL>
<DD>This method is responsible for generating
 bold <b>, italics <i> and <u> tags for the
 text based on its attribute settings.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - 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>&nbsp;attr)
                               throws java.io.IOException</PRE>
<DL>
<DD>This method is responsible for writing out the remaining
 character level attributes (i,e attributes other than bold
 italics and underlie) in an html compliant way.  Given that
 attributes like font family, font size etc.. have no direct
 mapping to html tags, a <font> 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>java.io.IOException - 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 java.io.IOException</PRE>
<DL>
<DD>Writes out an end tag for the <font> tag.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - 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>(java.lang.String&nbsp;style)
                     throws java.io.IOException</PRE>
<DL>
<DD>Writes out a start tag for the <font> tag.
 Given that font tags cannot be nested, if
 we are already in a font tag, it closes out
 the enclosing tag, before writing out a
 new start tag.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - 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" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/MinimalHTMLWriter.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../javax/swing/text/html/ListView.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../javax/swing/text/html/ObjectView.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="MinimalHTMLWriter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.AbstractWriter">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
