<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:01:01 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  AbstractWriter
</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/AbstractWriter.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/AbstractDocument.LeafElement.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/BoxView.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="AbstractWriter.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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</FONT>
<BR>
Class  AbstractWriter</H2>
<PRE>
java.lang.Object
  |
  +--<B>javax.swing.text.AbstractWriter</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../javax/swing/text/html/HTMLWriter.html">HTMLWriter</A>, <A HREF="../../../javax/swing/text/html/MinimalHTMLWriter.html">MinimalHTMLWriter</A></DD>
</DL>
<HR>
<DL>
<DT>public abstract class <B>AbstractWriter</B><DT>extends java.lang.Object</DL>

<P>
AbstractWriter is an abstract class that actually
 does the work of writing out the element tree
 including the attributes.  In terms of how much is
 written out per line, the writer defaults to 80.
 But this value can be set by subclasses.
<P>
<HR>

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


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

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;char</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#NEWLINE">NEWLINE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#AbstractWriter(java.io.Writer, javax.swing.text.Document)">AbstractWriter</A></B>(java.io.Writer&nbsp;w,
               <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new AbstractWriter.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#AbstractWriter(java.io.Writer, javax.swing.text.Document, int, int)">AbstractWriter</A></B>(java.io.Writer&nbsp;w,
               <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,
               int&nbsp;pos,
               int&nbsp;len)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new AbstractWriter.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#AbstractWriter(java.io.Writer, javax.swing.text.Element)">AbstractWriter</A></B>(java.io.Writer&nbsp;w,
               <A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;root)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new AbstractWriter.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#AbstractWriter(java.io.Writer, javax.swing.text.Element, int, int)">AbstractWriter</A></B>(java.io.Writer&nbsp;w,
               <A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;root,
               int&nbsp;pos,
               int&nbsp;len)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new AbstractWriter.</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/AbstractWriter.html#decrIndent()">decrIndent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decrements the indent level.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#getDocument()">getDocument</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the document.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../javax/swing/text/ElementIterator.html">ElementIterator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#getElementIterator()">getElementIterator</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the ElementIterator.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#getText(javax.swing.text.Element)">getText</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 the text associated with the 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/AbstractWriter.html#incrIndent()">incrIndent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Increments the indent level.</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/AbstractWriter.html#indent()">indent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does indentation.</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/AbstractWriter.html#inRange(javax.swing.text.Element)">inRange</A></B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;next)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method determines whether the current element
 is in the range specified.</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/AbstractWriter.html#setIndentSpace(int)">setIndentSpace</A></B>(int&nbsp;space)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables subclasses to specify how many spaces an indent
 maps to.</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/AbstractWriter.html#setLineLength(int)">setLineLength</A></B>(int&nbsp;l)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables subclasses to set the number of characters they
 want written per line.</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/AbstractWriter.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 abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractWriter.html#write()">write</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This abstract method needs to be implemented
 by subclasses.</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/AbstractWriter.html#write(char)">write</A></B>(char&nbsp;ch)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out a character.</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/AbstractWriter.html#write(java.lang.String)">write</A></B>(java.lang.String&nbsp;str)</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/AbstractWriter.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 set of attributes as " <name>=<value>"
 pairs.</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 =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="NEWLINE"><!-- --></A><H3>
NEWLINE</H3>
<PRE>
protected static final char <B>NEWLINE</B></PRE>
<DL>
</DL>

<!-- ========= 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="AbstractWriter(java.io.Writer, javax.swing.text.Document)"><!-- --></A><H3>
AbstractWriter</H3>
<PRE>
protected <B>AbstractWriter</B>(java.io.Writer&nbsp;w,
                         <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc)</PRE>
<DL>
<DD>Creates a new AbstractWriter.
 Initializes the ElementIterator with the default
 root of the document.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - Writer.<DD><CODE>a</CODE> - Document</DL>
</DD>
</DL>
<HR>

<A NAME="AbstractWriter(java.io.Writer, javax.swing.text.Document, int, int)"><!-- --></A><H3>
AbstractWriter</H3>
<PRE>
protected <B>AbstractWriter</B>(java.io.Writer&nbsp;w,
                         <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,
                         int&nbsp;pos,
                         int&nbsp;len)</PRE>
<DL>
<DD>Creates a new AbstractWriter.
 Initializes the ElementIterator with the
 element passed in.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - Writer<DD><CODE>an</CODE> - Element<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>
<HR>

<A NAME="AbstractWriter(java.io.Writer, javax.swing.text.Element)"><!-- --></A><H3>
AbstractWriter</H3>
<PRE>
protected <B>AbstractWriter</B>(java.io.Writer&nbsp;w,
                         <A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;root)</PRE>
<DL>
<DD>Creates a new AbstractWriter.
 Initializes the ElementIterator with the
 element passed in.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - Writer<DD><CODE>an</CODE> - Element</DL>
</DD>
</DL>
<HR>

<A NAME="AbstractWriter(java.io.Writer, javax.swing.text.Element, int, int)"><!-- --></A><H3>
AbstractWriter</H3>
<PRE>
protected <B>AbstractWriter</B>(java.io.Writer&nbsp;w,
                         <A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;root,
                         int&nbsp;pos,
                         int&nbsp;len)</PRE>
<DL>
<DD>Creates a new AbstractWriter.
 Initializes the ElementIterator with the
 element passed in.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - Writer<DD><CODE>an</CODE> - Element<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="getElementIterator()"><!-- --></A><H3>
getElementIterator</H3>
<PRE>
protected <A HREF="../../../javax/swing/text/ElementIterator.html">ElementIterator</A> <B>getElementIterator</B>()</PRE>
<DL>
<DD>Fetches the ElementIterator.<DD><DL>
<DT><B>Returns:</B><DD>the ElementIterator.</DL>
</DD>
</DL>
<HR>

<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
protected <A HREF="../../../javax/swing/text/Document.html">Document</A> <B>getDocument</B>()</PRE>
<DL>
<DD>Fetches the document.<DD><DL>
<DT><B>Returns:</B><DD>the Document.</DL>
</DD>
</DL>
<HR>

<A NAME="inRange(javax.swing.text.Element)"><!-- --></A><H3>
inRange</H3>
<PRE>
protected boolean <B>inRange</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;next)</PRE>
<DL>
<DD>This method determines whether the current element
 is in the range specified.  When no range is specified,
 the range is initialized to be the entire document.
 inRange() returns true if the range specified intersects
 with the element's range.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - Element.<DT><B>Returns:</B><DD>boolean that indicates whether the element
         is in the range.</DL>
</DD>
</DL>
<HR>

<A NAME="write()"><!-- --></A><H3>
write</H3>
<PRE>
protected abstract void <B>write</B>()
                       throws java.io.IOException,
                              <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>This abstract method needs to be implemented
 by subclasses.  Its responsibility is to
 iterate over the elements and use the write()
 methods to generate output in the desired format.</DL>
<HR>

<A NAME="getText(javax.swing.text.Element)"><!-- --></A><H3>
getText</H3>
<PRE>
protected java.lang.String <B>getText</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)
                            throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>Returns the text associated with the element.
 The assumption here is that the element is a
 leaf element.  Throws a BadLocationException
 when encountered.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - Element.<DT><B>Throws:</B><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.</DL>
</DD>
</DL>
<HR>

<A NAME="setLineLength(int)"><!-- --></A><H3>
setLineLength</H3>
<PRE>
protected void <B>setLineLength</B>(int&nbsp;l)</PRE>
<DL>
<DD>Enables subclasses to set the number of characters they
 want written per line.   The default is 100.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>the</CODE> - maximum line length.</DL>
</DD>
</DL>
<HR>

<A NAME="setIndentSpace(int)"><!-- --></A><H3>
setIndentSpace</H3>
<PRE>
protected void <B>setIndentSpace</B>(int&nbsp;space)</PRE>
<DL>
<DD>Enables subclasses to specify how many spaces an indent
 maps to. When indentation takes place, the indent level
 is multiplied by this mapping.  The default is 2.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - int representing the space to indent mapping.</DL>
</DD>
</DL>
<HR>

<A NAME="incrIndent()"><!-- --></A><H3>
incrIndent</H3>
<PRE>
protected void <B>incrIndent</B>()</PRE>
<DL>
<DD>Increments the indent level.</DL>
<HR>

<A NAME="decrIndent()"><!-- --></A><H3>
decrIndent</H3>
<PRE>
protected void <B>decrIndent</B>()</PRE>
<DL>
<DD>Decrements the indent level.</DL>
<HR>

<A NAME="indent()"><!-- --></A><H3>
indent</H3>
<PRE>
protected void <B>indent</B>()
               throws java.io.IOException</PRE>
<DL>
<DD>Does indentation.  The number of spaces written
 out is indent level times the space to map mapping.<DD><DL>
<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="write(char)"><!-- --></A><H3>
write</H3>
<PRE>
protected void <B>write</B>(char&nbsp;ch)
              throws java.io.IOException</PRE>
<DL>
<DD>Writes out a character.  If the character is
 a newline then it resets the current length to
 0.  If the current length equals the maximum
 line length, then a newline is outputed and the
 current length is reset to 0.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - char.<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</DL>
</DD>
</DL>
<HR>

<A NAME="write(java.lang.String)"><!-- --></A><H3>
write</H3>
<PRE>
protected void <B>write</B>(java.lang.String&nbsp;str)
              throws java.io.IOException</PRE>
<DL>
<DD>Writes out a string.  If writing out the string on
 the current line results in the maximum line length
 being exceeded, it then attempts to write this line out
 on the next line.  However if the length of the
 string itself exceeds the maximum line length, it
 then recursively calls this method on the substring
 from 0 to max line length, and then again from
 max line length+1 to the end of the string -- inserting
 new lines where necessary.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>a</CODE> - String.<DT><B>Throws:</B><DD>java.io.IOException - on any I/O error</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 set of attributes as " <name>=<value>"
 pairs. It throws an IOException when encountered.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>an</CODE> - AttributeSet.<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/AbstractWriter.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/AbstractDocument.LeafElement.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/BoxView.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="AbstractWriter.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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>
