<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:02:00 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  HTMLWriter
</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/HTMLWriter.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/HTMLFrameHyperlinkEvent.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../javax/swing/text/html/InlineView.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="HTMLWriter.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  HTMLWriter</H2>
<PRE>
java.lang.Object
  |
  +--<A HREF="../../../../javax/swing/text/AbstractWriter.html">javax.swing.text.AbstractWriter</A>
        |
        +--<B>javax.swing.text.html.HTMLWriter</B>
</PRE>
<HR>
<DL>
<DT>public class <B>HTMLWriter</B><DT>extends <A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></DL>

<P>
This is a writer for HTMLDocuments.
<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/HTMLWriter.html#HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument)">HTMLWriter</A></B>(java.io.Writer&nbsp;w,
           <A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A>&nbsp;doc)</CODE>

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

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new HTMLWriter.</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/HTMLWriter.html#closeOutUnwantedEmbeddedTags(javax.swing.text.AttributeSet)">closeOutUnwantedEmbeddedTags</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 searches the attribute set and for each tag
 that is stored in the tag vector.</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/HTMLWriter.html#comment(javax.swing.text.Element)">comment</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;Writes out comments.</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/HTMLWriter.html#emptyTag(javax.swing.text.Element)">emptyTag</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;Writes out all empty elements i.e tags that have no
 corresponding end 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/HTMLWriter.html#endTag(javax.swing.text.Element)">endTag</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;Writes out an end tag for the element.</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/HTMLWriter.html#isBlockTag(javax.swing.text.AttributeSet)">isBlockTag</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;Determines if the HTML.Tag associated with the
 element is a block 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/HTMLWriter.html#matchNameAttribute(javax.swing.text.AttributeSet, javax.swing.text.html.HTML.Tag)">matchNameAttribute</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr,
                   <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A>&nbsp;tag)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method return true if the StyleConstants.NameAttribute is
 equal to the tag that is passed in as a parameter.</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/HTMLWriter.html#selectContent(javax.swing.text.AttributeSet)">selectContent</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 content of the SELECT form 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/HTMLWriter.html#startTag(javax.swing.text.Element)">startTag</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;Writes out a start tag for the element.</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/HTMLWriter.html#synthesizedElement(javax.swing.text.Element)">synthesizedElement</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 returns true, if the element is a
 synthesized 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/HTMLWriter.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;Writes 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/HTMLWriter.html#textAreaContent(javax.swing.text.AttributeSet)">textAreaContent</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 text that is contained in a TEXTAREA form
 element.</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/HTMLWriter.html#write()">write</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is method that iterates over the the
 Element tree and controls the writing out of
 all the tags and its attributes.</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/HTMLWriter.html#write(java.lang.String)">write</A></B>(java.lang.String&nbsp;content)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out a string.</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/HTMLWriter.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;Writes out the attribute set.</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/HTMLWriter.html#writeEmbeddedTags(javax.swing.text.AttributeSet)">writeEmbeddedTags</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 searches for embedded tags in the AttributeSet
 and writes them out.</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/HTMLWriter.html#writeOption(javax.swing.text.html.Option)">writeOption</A></B>(<A HREF="../../../../javax/swing/text/html/Option.html">Option</A>&nbsp;option)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out the content of the Option form element.</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></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="HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument)"><!-- --></A><H3>
HTMLWriter</H3>
<PRE>
public <B>HTMLWriter</B>(java.io.Writer&nbsp;w,
                  <A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A>&nbsp;doc)</PRE>
<DL>
<DD>Creates a new HTMLWriter.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - Writer<DD><CODE>an</CODE> - HTMLDocument</DL>
</DD>
</DL>
<HR>

<A NAME="HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument, int, int)"><!-- --></A><H3>
HTMLWriter</H3>
<PRE>
public <B>HTMLWriter</B>(java.io.Writer&nbsp;w,
                  <A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A>&nbsp;doc,
                  int&nbsp;pos,
                  int&nbsp;len)</PRE>
<DL>
<DD>Creates a new HTMLWriter.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - Writer<DD><CODE>an</CODE> - HTMLDocument<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 is method that iterates over the the
 Element tree and controls the writing out of
 all the tags and its attributes.<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>Writes out the attribute set.  Ignores all
 attributes whose key is of type HTML.Tag.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - AttributeSet.<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="emptyTag(javax.swing.text.Element)"><!-- --></A><H3>
emptyTag</H3>
<PRE>
protected void <B>emptyTag</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)
                 throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>,
                        java.io.IOException</PRE>
<DL>
<DD>Writes out all empty elements i.e tags that have no
 corresponding end tag.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - Element.<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="isBlockTag(javax.swing.text.AttributeSet)"><!-- --></A><H3>
isBlockTag</H3>
<PRE>
protected boolean <B>isBlockTag</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</PRE>
<DL>
<DD>Determines if the HTML.Tag associated with the
 element is a block tag.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>AttributeSet.</CODE> - &nbsp;<DT><B>Returns:</B><DD>true if tag is block tag, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="startTag(javax.swing.text.Element)"><!-- --></A><H3>
startTag</H3>
<PRE>
protected void <B>startTag</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>Writes out a start tag for the element.
 Ignores all synthesized elements.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - Element.<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="textAreaContent(javax.swing.text.AttributeSet)"><!-- --></A><H3>
textAreaContent</H3>
<PRE>
protected void <B>textAreaContent</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)
                        throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>,
                               java.io.IOException</PRE>
<DL>
<DD>Writes out text that is contained in a TEXTAREA form
 element.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>AttributeSet</CODE> - &nbsp;<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="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="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>,
                    java.io.IOException</PRE>
<DL>
<DD>Writes out text.  If a range is specified when the constructor
 is invoked, then only the appropriate range of text is written
 out.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - Element.<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#text(javax.swing.text.Element)">text</A> in class <A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></DL>
</DD>
</DL>
<HR>

<A NAME="write(java.lang.String)"><!-- --></A><H3>
write</H3>
<PRE>
protected void <B>write</B>(java.lang.String&nbsp;content)
              throws java.io.IOException</PRE>
<DL>
<DD>Writes out a string.  If writing the contents of a
 textarea, it handles the appropriate indentation for
 embedded new lines. Otherwise it invokes the superclass
 to handle the writing.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>String</CODE> - representing the content.<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#write(java.lang.String)">write</A> in class <A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></DL>
</DD>
</DL>
<HR>

<A NAME="selectContent(javax.swing.text.AttributeSet)"><!-- --></A><H3>
selectContent</H3>
<PRE>
protected void <B>selectContent</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)
                      throws java.io.IOException</PRE>
<DL>
<DD>Writes out the content of the SELECT form element.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>AttributeSet</CODE> - associcated with the form element.<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="writeOption(javax.swing.text.html.Option)"><!-- --></A><H3>
writeOption</H3>
<PRE>
protected void <B>writeOption</B>(<A HREF="../../../../javax/swing/text/html/Option.html">Option</A>&nbsp;option)
                    throws java.io.IOException</PRE>
<DL>
<DD>Writes out the content of the Option form element.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>Option.</CODE> - &nbsp;<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="endTag(javax.swing.text.Element)"><!-- --></A><H3>
endTag</H3>
<PRE>
protected void <B>endTag</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)
               throws java.io.IOException</PRE>
<DL>
<DD>Writes out an end tag for the element.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - Element.<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="comment(javax.swing.text.Element)"><!-- --></A><H3>
comment</H3>
<PRE>
protected void <B>comment</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)
                throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>,
                       java.io.IOException</PRE>
<DL>
<DD>Writes out comments.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - element.<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="synthesizedElement(javax.swing.text.Element)"><!-- --></A><H3>
synthesizedElement</H3>
<PRE>
protected boolean <B>synthesizedElement</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</PRE>
<DL>
<DD>This method returns true, if the element is a
 synthesized element.  Currently we are only testing
 for the p-implied tag.</DL>
<HR>

<A NAME="matchNameAttribute(javax.swing.text.AttributeSet, javax.swing.text.html.HTML.Tag)"><!-- --></A><H3>
matchNameAttribute</H3>
<PRE>
protected boolean <B>matchNameAttribute</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr,
                                     <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A>&nbsp;tag)</PRE>
<DL>
<DD>This method return true if the StyleConstants.NameAttribute is
 equal to the tag that is passed in as a parameter.</DL>
<HR>

<A NAME="writeEmbeddedTags(javax.swing.text.AttributeSet)"><!-- --></A><H3>
writeEmbeddedTags</H3>
<PRE>
protected void <B>writeEmbeddedTags</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)
                          throws java.io.IOException</PRE>
<DL>
<DD>This method searches for embedded tags in the AttributeSet
 and writes them out.  It also stores these tags in a vector
 so that when appropriate the corresponding end tags can be
 written out.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="closeOutUnwantedEmbeddedTags(javax.swing.text.AttributeSet)"><!-- --></A><H3>
closeOutUnwantedEmbeddedTags</H3>
<PRE>
protected void <B>closeOutUnwantedEmbeddedTags</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)
                                     throws java.io.IOException</PRE>
<DL>
<DD>This method searches the attribute set and for each tag
 that is stored in the tag vector.  If the tag isnt found,
 then the tag is removed from the vector and a corresponding
 end tag is written out.<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/HTMLWriter.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/HTMLFrameHyperlinkEvent.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../javax/swing/text/html/InlineView.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="HTMLWriter.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>
