<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:01:50 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  HTMLDocument
</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/HTMLDocument.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/HTML.UnknownTag.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../javax/swing/text/html/HTMLDocument.BlockElement.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="HTMLDocument.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&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.html</FONT>
<BR>
Class  HTMLDocument</H2>
<PRE>
java.lang.Object
  |
  +--<A HREF="../../../../javax/swing/text/AbstractDocument.html">javax.swing.text.AbstractDocument</A>
        |
        +--<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">javax.swing.text.DefaultStyledDocument</A>
              |
              +--<B>javax.swing.text.html.HTMLDocument</B>
</PRE>
<HR>
<DL>
<DT>public class <B>HTMLDocument</B><DT>extends <A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></DL>

<P>
A document that models html.  The purpose of this model
 is to support both browsing and editing.  As a result,
 the structure described by an html document is not 
 exactly replicated by default.  The element structure that 
 is modeled by default, is built by the class
 <code>HTMLDocument.HTMLReader</code>, which implements
 the <code>HTMLEditorKit.ParserCallback</code> protocol
 that the parser expects.  To change the structure one
 can subclass HTMLReader, and reimplement the method
 <a href="#getReader">getReader</a> to return the new
 reader implementation.  The documentation for 
 HTMLReader should be consulted for the details of
 the default structure created.  The intent is that 
 the document be non-lossy (although reproducing the
 html format may result in a different format).
 <p>
 The document models only html, and makes no attempt to
 store view attributes in it.  The elements are identified
 by the <code>StyleContext.NameAttribute</code> attribute,
 which should always have a value of type <code>HTML.Tag</code>
 that identifies the kind of element.  Some of the elements
 are (such as comments) are synthesized.  The HTMLFactory
 uses this attribute to determine what kind of view to build.
 <p>
 This document supports incremental loading.  The
 <code>TokenThreshold</code> property controls how
 much of the parse is buffered before trying to update
 the element structure of the document.  This property
 is set by the EditorKit so that subclasses can disable
 it.
 <p>
 The <code>Base</code> property determines the URL
 against which relative URL's are resolved against.
 By default, this will be the 
 <code>Document.StreamDescriptionProperty</code> if
 the value of the property is a URL.  If a &lt;base&gt;
 tag is encountered, the base will become the URL specified
 by that tag.  Because the base URL is a property, it
 can of course be set directly.
 <p>
 The default content storage mechanism for this document
 is a gap buffer (GapContent).  Alternatives can be supplied
 by using the constructor that takes a Content implementation.
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../../../serialized-form.html#javax.swing.text.html.HTMLDocument">Serialized Form</A></DL>
<HR>

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

<A NAME="inner_class_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Inner Class Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.BlockElement.html">HTMLDocument.BlockElement</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An element that represents a structual <em>block</em> of
 html.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.HTMLReader.html">HTMLDocument.HTMLReader</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An html reader to load an html document with an html
 element structure.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.Iterator.html">HTMLDocument.Iterator</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An iterator to iterate over a particular type of
 tag.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.RunElement.html">HTMLDocument.RunElement</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An element that represents a chunk of text that has
 a set of html character level attributes assigned to
 it.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.text.DefaultStyledDocument"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Inner classes inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.AttributeUndoableEdit.html">DefaultStyledDocument.AttributeUndoableEdit</A></B>,  
<B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementBuffer.html">DefaultStyledDocument.ElementBuffer</A></B>,  
<B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A></B>,  
<B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.SectionElement.html">DefaultStyledDocument.SectionElement</A></B></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.text.AbstractDocument"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Inner classes inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/AbstractDocument.html">AbstractDocument</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../../javax/swing/text/AbstractDocument.AbstractElement.html">AbstractDocument.AbstractElement</A></B>,  
<B><A HREF="../../../../javax/swing/text/AbstractDocument.AttributeContext.html">AbstractDocument.AttributeContext</A></B>,  
<B><A HREF="../../../../javax/swing/text/AbstractDocument.BranchElement.html">AbstractDocument.BranchElement</A></B>,  
<B><A HREF="../../../../javax/swing/text/AbstractDocument.Content.html">AbstractDocument.Content</A></B>,  
<B><A HREF="../../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html">AbstractDocument.DefaultDocumentEvent</A></B>,  
<B><A HREF="../../../../javax/swing/text/AbstractDocument.ElementEdit.html">AbstractDocument.ElementEdit</A></B>,  
<B><A HREF="../../../../javax/swing/text/AbstractDocument.LeafElement.html">AbstractDocument.LeafElement</A></B></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== 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>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#AdditionalComments">AdditionalComments</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Document property key value.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.text.DefaultStyledDocument"><!-- --></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/DefaultStyledDocument.html">DefaultStyledDocument</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#buffer">buffer</A>,  
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#BUFFER_SIZE_DEFAULT">BUFFER_SIZE_DEFAULT</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.text.AbstractDocument"><!-- --></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/AbstractDocument.html">AbstractDocument</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../../javax/swing/text/AbstractDocument.html#BAD_LOCATION">BAD_LOCATION</A>,  
<A HREF="../../../../javax/swing/text/AbstractDocument.html#BidiElementName">BidiElementName</A>,  
<A HREF="../../../../javax/swing/text/AbstractDocument.html#ContentElementName">ContentElementName</A>,  
<A HREF="../../../../javax/swing/text/AbstractDocument.html#ElementNameAttribute">ElementNameAttribute</A>,  
<A HREF="../../../../javax/swing/text/AbstractDocument.html#listenerList">listenerList</A>,  
<A HREF="../../../../javax/swing/text/AbstractDocument.html#ParagraphElementName">ParagraphElementName</A>,  
<A HREF="../../../../javax/swing/text/AbstractDocument.html#SectionElementName">SectionElementName</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/HTMLDocument.html#HTMLDocument()">HTMLDocument</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an html document.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#HTMLDocument(javax.swing.text.AbstractDocument.Content, javax.swing.text.html.StyleSheet)">HTMLDocument</A></B>(<A HREF="../../../../javax/swing/text/AbstractDocument.Content.html">AbstractDocument.Content</A>&nbsp;c,
             <A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A>&nbsp;styles)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an html document with the given content
 storage implementation and the given style/attribute
 storage mechanism.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#HTMLDocument(javax.swing.text.html.StyleSheet)">HTMLDocument</A></B>(<A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A>&nbsp;styles)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an html document with the default content
 storage implementation and the given style/attribute
 storage mechanism.</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/HTMLDocument.html#create(javax.swing.text.DefaultStyledDocument.ElementSpec[])">create</A></B>(<A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A>[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the contents of the document with the given
 element specifications.</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/Element.html">Element</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#createBranchElement(javax.swing.text.Element, javax.swing.text.AttributeSet)">createBranchElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,
                    <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a document branch element, that can contain other elements.</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/AbstractDocument.AbstractElement.html">AbstractDocument.AbstractElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#createDefaultRoot()">createDefaultRoot</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the root element to be used to represent the
 default document structure.</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/Element.html">Element</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#createLeafElement(javax.swing.text.Element, javax.swing.text.AttributeSet, int, int)">createLeafElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,
                  <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a,
                  int&nbsp;p0,
                  int&nbsp;p1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a document leaf element that directly represents
 text (doesn't have any children).</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.net.URL</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getBase()">getBase</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the location to resolve relative url's against.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../javax/swing/text/html/HTMLDocument.Iterator.html">HTMLDocument.Iterator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getIterator(javax.swing.text.html.HTML.Tag)">getIterator</A></B>(<A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A>&nbsp;t)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch an iterator for the following kind of html tag.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getPreservesUnknownTags()">getPreservesUnknownTags</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../javax/swing/text/html/HTMLEditorKit.ParserCallback.html">HTMLEditorKit.ParserCallback</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getReader(int)">getReader</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch the reader for the parser to use to load the document
 with html.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../javax/swing/text/html/HTMLEditorKit.ParserCallback.html">HTMLEditorKit.ParserCallback</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getReader(int, int, int, javax.swing.text.html.HTML.Tag)">getReader</A></B>(int&nbsp;pos,
          int&nbsp;popDepth,
          int&nbsp;pushDepth,
          <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A>&nbsp;insertTag)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch the reader for the parser to use to load the document
 with html.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getStyleSheet()">getStyleSheet</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch the StyleSheet with the document-specific display
 rules(CSS) that were specified in the html document itself.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getTokenThreshold()">getTokenThreshold</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of tokens to buffer before trying to update
 the documents element structure.</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/HTMLDocument.html#insert(int, javax.swing.text.DefaultStyledDocument.ElementSpec[])">insert</A></B>(int&nbsp;offset,
       <A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A>[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts new elements in bulk.</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/HTMLDocument.html#insertUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AttributeSet)">insertUpdate</A></B>(<A HREF="../../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html">AbstractDocument.DefaultDocumentEvent</A>&nbsp;chng,
             <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates document structure as a result of text insertion.</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/HTMLDocument.html#processHTMLFrameHyperlinkEvent(javax.swing.text.html.HTMLFrameHyperlinkEvent)">processHTMLFrameHyperlinkEvent</A></B>(<A HREF="../../../../javax/swing/text/html/HTMLFrameHyperlinkEvent.html">HTMLFrameHyperlinkEvent</A>&nbsp;e)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is responsible for processing HyperlinkEvent's that
 are generated by documents in an HTML frame.</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/HTMLDocument.html#setBase(java.net.URL)">setBase</A></B>(java.net.URL&nbsp;u)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the location to resolve relative url's against.</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/HTMLDocument.html#setPreservesUnknownTags(boolean)">setPreservesUnknownTags</A></B>(boolean&nbsp;preservesTags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets how unknown tags are handled.</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/HTMLDocument.html#setTokenThreshold(int)">setTokenThreshold</A></B>(int&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the number of tokens to buffer before trying to update
 the documents element structure.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.DefaultStyledDocument"><!-- --></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/DefaultStyledDocument.html">DefaultStyledDocument</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#addDocumentListener(javax.swing.event.DocumentListener)">addDocumentListener</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#addStyle(java.lang.String, javax.swing.text.Style)">addStyle</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getBackground(javax.swing.text.AttributeSet)">getBackground</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getCharacterElement(int)">getCharacterElement</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getDefaultRootElement()">getDefaultRootElement</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getFont(javax.swing.text.AttributeSet)">getFont</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getForeground(javax.swing.text.AttributeSet)">getForeground</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getLogicalStyle(int)">getLogicalStyle</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getParagraphElement(int)">getParagraphElement</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getStyle(java.lang.String)">getStyle</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getStyleNames()">getStyleNames</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#removeDocumentListener(javax.swing.event.DocumentListener)">removeDocumentListener</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#removeStyle(java.lang.String)">removeStyle</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#removeUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent)">removeUpdate</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#setCharacterAttributes(int, int, javax.swing.text.AttributeSet, boolean)">setCharacterAttributes</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#setLogicalStyle(int, javax.swing.text.Style)">setLogicalStyle</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#setParagraphAttributes(int, int, javax.swing.text.AttributeSet, boolean)">setParagraphAttributes</A>, 
<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#styleChanged(javax.swing.text.Style)">styleChanged</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.AbstractDocument"><!-- --></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/AbstractDocument.html">AbstractDocument</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../../javax/swing/text/AbstractDocument.html#addUndoableEditListener(javax.swing.event.UndoableEditListener)">addUndoableEditListener</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#createPosition(int)">createPosition</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#dump(java.io.PrintStream)">dump</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#fireChangedUpdate(javax.swing.event.DocumentEvent)">fireChangedUpdate</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#fireInsertUpdate(javax.swing.event.DocumentEvent)">fireInsertUpdate</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#fireRemoveUpdate(javax.swing.event.DocumentEvent)">fireRemoveUpdate</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#fireUndoableEditUpdate(javax.swing.event.UndoableEditEvent)">fireUndoableEditUpdate</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getAsynchronousLoadPriority()">getAsynchronousLoadPriority</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getAttributeContext()">getAttributeContext</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getBidiRootElement()">getBidiRootElement</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getContent()">getContent</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getCurrentWriter()">getCurrentWriter</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getDocumentProperties()">getDocumentProperties</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getEndPosition()">getEndPosition</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getLength()">getLength</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getProperty(java.lang.Object)">getProperty</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getRootElements()">getRootElements</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getStartPosition()">getStartPosition</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getText(int, int)">getText</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#getText(int, int, javax.swing.text.Segment)">getText</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#insertString(int, java.lang.String, javax.swing.text.AttributeSet)">insertString</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#postRemoveUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent)">postRemoveUpdate</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#putProperty(java.lang.Object, java.lang.Object)">putProperty</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#readLock()">readLock</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#readUnlock()">readUnlock</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#remove(int, int)">remove</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#removeUndoableEditListener(javax.swing.event.UndoableEditListener)">removeUndoableEditListener</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#render(java.lang.Runnable)">render</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#setAsynchronousLoadPriority(int)">setAsynchronousLoadPriority</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#setDocumentProperties(java.util.Dictionary)">setDocumentProperties</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#writeLock()">writeLock</A>, 
<A HREF="../../../../javax/swing/text/AbstractDocument.html#writeUnlock()">writeUnlock</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 =========== -->

<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="AdditionalComments"><!-- --></A><H3>
AdditionalComments</H3>
<PRE>
public static final java.lang.String <B>AdditionalComments</B></PRE>
<DL>
<DD>Document property key value. The value for the key will be a Vector
 of Strings that are comments not found in the body.</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="HTMLDocument()"><!-- --></A><H3>
HTMLDocument</H3>
<PRE>
public <B>HTMLDocument</B>()</PRE>
<DL>
<DD>Constructs an html document.</DL>
<HR>

<A NAME="HTMLDocument(javax.swing.text.html.StyleSheet)"><!-- --></A><H3>
HTMLDocument</H3>
<PRE>
public <B>HTMLDocument</B>(<A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A>&nbsp;styles)</PRE>
<DL>
<DD>Constructs an html document with the default content
 storage implementation and the given style/attribute
 storage mechanism.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>styles</CODE> - the styles</DL>
</DD>
</DL>
<HR>

<A NAME="HTMLDocument(javax.swing.text.AbstractDocument.Content, javax.swing.text.html.StyleSheet)"><!-- --></A><H3>
HTMLDocument</H3>
<PRE>
public <B>HTMLDocument</B>(<A HREF="../../../../javax/swing/text/AbstractDocument.Content.html">AbstractDocument.Content</A>&nbsp;c,
                    <A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A>&nbsp;styles)</PRE>
<DL>
<DD>Constructs an html document with the given content
 storage implementation and the given style/attribute
 storage mechanism.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the container for the content<DD><CODE>styles</CODE> - the styles</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="getReader(int)"><!-- --></A><H3>
getReader</H3>
<PRE>
public <A HREF="../../../../javax/swing/text/html/HTMLEditorKit.ParserCallback.html">HTMLEditorKit.ParserCallback</A> <B>getReader</B>(int&nbsp;pos)</PRE>
<DL>
<DD>Fetch the reader for the parser to use to load the document
 with html.  This is implemented to return an instance of
 HTMLDocument.HTMLReader.  Subclasses can reimplement this
 method to change how the document get structured if desired
 (e.g. to handle custom tags, structurally represent character
 style elements, etc.).</DL>
<HR>

<A NAME="getReader(int, int, int, javax.swing.text.html.HTML.Tag)"><!-- --></A><H3>
getReader</H3>
<PRE>
public <A HREF="../../../../javax/swing/text/html/HTMLEditorKit.ParserCallback.html">HTMLEditorKit.ParserCallback</A> <B>getReader</B>(int&nbsp;pos,
                                              int&nbsp;popDepth,
                                              int&nbsp;pushDepth,
                                              <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A>&nbsp;insertTag)</PRE>
<DL>
<DD>Fetch the reader for the parser to use to load the document
 with html.  This is implemented to return an instance of
 HTMLDocument.HTMLReader.  Subclasses can reimplement this
 method to change how the document get structured if desired
 (e.g. to handle custom tags, structurally represent character
 style elements, etc.).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>popDepth</CODE> - number of ElementSpec.EndTagTag to generate before
        inserting.<DD><CODE>pushDepth</CODE> - number of ElementSpec.StartTagType with a direction
        of ElementSpec.JoinNextDirection that should be generated
        before inserting, but after the end tags have been generated.<DD><CODE>insertTag</CODE> - first tag to start inserting into document.</DL>
</DD>
</DL>
<HR>

<A NAME="getBase()"><!-- --></A><H3>
getBase</H3>
<PRE>
public java.net.URL <B>getBase</B>()</PRE>
<DL>
<DD>Get the location to resolve relative url's against.  By
 default this will be the documents url if the document
 was loaded from a url.  If a base tag is found and
 can be parsed, it will be used as the base location.</DL>
<HR>

<A NAME="setBase(java.net.URL)"><!-- --></A><H3>
setBase</H3>
<PRE>
public void <B>setBase</B>(java.net.URL&nbsp;u)</PRE>
<DL>
<DD>Set the location to resolve relative url's against.  By
 default this will be the documents url if the document
 was loaded from a url.  If a base tag is found and
 can be parsed, it will be used as the base location.</DL>
<HR>

<A NAME="insert(int, javax.swing.text.DefaultStyledDocument.ElementSpec[])"><!-- --></A><H3>
insert</H3>
<PRE>
protected void <B>insert</B>(int&nbsp;offset,
                      <A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A>[]&nbsp;data)
               throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>Inserts new elements in bulk.  This is how elements get created
 in the document.  The parsing determines what structure is needed
 and creates the specification as a set of tokens that describe the
 edit while leaving the document free of a write-lock.  This method
 can then be called in bursts by the reader to acquire a write-lock
 for a shorter duration (i.e. while the document is actually being
 altered).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>offset</CODE> - the starting offset<DT><B>Throws:</B><DD><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - for an invalid starting offset<DD><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - if the given position does not 
   represent a valid location in the associated document.<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#insert(int, javax.swing.text.DefaultStyledDocument.ElementSpec[])">insert</A> in class <A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A><DT><B>See Also: </B><DD><CODE>StyledDocument#insert</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="insertUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AttributeSet)"><!-- --></A><H3>
insertUpdate</H3>
<PRE>
protected void <B>insertUpdate</B>(<A HREF="../../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html">AbstractDocument.DefaultDocumentEvent</A>&nbsp;chng,
                            <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</PRE>
<DL>
<DD>Updates document structure as a result of text insertion.  This
 will happen within a write lock.  This implementation simply
 parses the inserted content for line breaks and builds up a set
 of instructions for the element buffer.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>chng</CODE> - a description of the document change<DD><CODE>attr</CODE> - the attributes<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#insertUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AttributeSet)">insertUpdate</A> in class <A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></DL>
</DD>
</DL>
<HR>

<A NAME="create(javax.swing.text.DefaultStyledDocument.ElementSpec[])"><!-- --></A><H3>
create</H3>
<PRE>
protected void <B>create</B>(<A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A>[]&nbsp;data)</PRE>
<DL>
<DD>Replaces the contents of the document with the given
 element specifications.  This is called before insert if
 the loading is done in bursts.  This is the only method called
 if loading the document entirely in one burst.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#create(javax.swing.text.DefaultStyledDocument.ElementSpec[])">create</A> in class <A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></DL>
</DD>
</DL>
<HR>

<A NAME="getStyleSheet()"><!-- --></A><H3>
getStyleSheet</H3>
<PRE>
public <A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A> <B>getStyleSheet</B>()</PRE>
<DL>
<DD>Fetch the StyleSheet with the document-specific display
 rules(CSS) that were specified in the html document itself.</DL>
<HR>

<A NAME="getIterator(javax.swing.text.html.HTML.Tag)"><!-- --></A><H3>
getIterator</H3>
<PRE>
public <A HREF="../../../../javax/swing/text/html/HTMLDocument.Iterator.html">HTMLDocument.Iterator</A> <B>getIterator</B>(<A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A>&nbsp;t)</PRE>
<DL>
<DD>Fetch an iterator for the following kind of html tag.
 This can be used for things like iterating over the
 set of anchors contained, iterating over the input
 elements, etc.</DL>
<HR>

<A NAME="createLeafElement(javax.swing.text.Element, javax.swing.text.AttributeSet, int, int)"><!-- --></A><H3>
createLeafElement</H3>
<PRE>
protected <A HREF="../../../../javax/swing/text/Element.html">Element</A> <B>createLeafElement</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,
                                    <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a,
                                    int&nbsp;p0,
                                    int&nbsp;p1)</PRE>
<DL>
<DD>Creates a document leaf element that directly represents
 text (doesn't have any children).  This is implemented
 to return an element of type 
 <code>HTMLDocument.RunElement</code>.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent element<DD><CODE>a</CODE> - the attributes for the element<DD><CODE>p0</CODE> - the beginning of the range >= 0<DD><CODE>p1</CODE> - the end of the range >= p0<DT><B>Returns:</B><DD>the new element<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/AbstractDocument.html#createLeafElement(javax.swing.text.Element, javax.swing.text.AttributeSet, int, int)">createLeafElement</A> in class <A HREF="../../../../javax/swing/text/AbstractDocument.html">AbstractDocument</A></DL>
</DD>
</DL>
<HR>

<A NAME="createBranchElement(javax.swing.text.Element, javax.swing.text.AttributeSet)"><!-- --></A><H3>
createBranchElement</H3>
<PRE>
protected <A HREF="../../../../javax/swing/text/Element.html">Element</A> <B>createBranchElement</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,
                                      <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE>
<DL>
<DD>Creates a document branch element, that can contain other elements.
 This is implemented to return an element of type 
 <code>HTMLDocument.BlockElement</code>.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent element<DD><CODE>a</CODE> - the attributes<DT><B>Returns:</B><DD>the element<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/AbstractDocument.html#createBranchElement(javax.swing.text.Element, javax.swing.text.AttributeSet)">createBranchElement</A> in class <A HREF="../../../../javax/swing/text/AbstractDocument.html">AbstractDocument</A></DL>
</DD>
</DL>
<HR>

<A NAME="createDefaultRoot()"><!-- --></A><H3>
createDefaultRoot</H3>
<PRE>
protected <A HREF="../../../../javax/swing/text/AbstractDocument.AbstractElement.html">AbstractDocument.AbstractElement</A> <B>createDefaultRoot</B>()</PRE>
<DL>
<DD>Creates the root element to be used to represent the
 default document structure.<DD><DL>
<DT><B>Returns:</B><DD>the element base<DT><B>Overrides:</B><DD><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#createDefaultRoot()">createDefaultRoot</A> in class <A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></DL>
</DD>
</DL>
<HR>

<A NAME="setTokenThreshold(int)"><!-- --></A><H3>
setTokenThreshold</H3>
<PRE>
public void <B>setTokenThreshold</B>(int&nbsp;n)</PRE>
<DL>
<DD>Set the number of tokens to buffer before trying to update
 the documents element structure.</DL>
<HR>

<A NAME="getTokenThreshold()"><!-- --></A><H3>
getTokenThreshold</H3>
<PRE>
public int <B>getTokenThreshold</B>()</PRE>
<DL>
<DD>Get the number of tokens to buffer before trying to update
 the documents element structure.  By default, this will
 be <code>Integer.MAX_VALUE</code>.</DL>
<HR>

<A NAME="setPreservesUnknownTags(boolean)"><!-- --></A><H3>
setPreservesUnknownTags</H3>
<PRE>
public void <B>setPreservesUnknownTags</B>(boolean&nbsp;preservesTags)</PRE>
<DL>
<DD>Sets how unknown tags are handled. If set to true, unknown
 tags are put in the model, otherwise they are dropped.</DL>
<HR>

<A NAME="getPreservesUnknownTags()"><!-- --></A><H3>
getPreservesUnknownTags</H3>
<PRE>
public boolean <B>getPreservesUnknownTags</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>true if unknown tags are to be preserved when parsing.</DL>
</DD>
</DL>
<HR>

<A NAME="processHTMLFrameHyperlinkEvent(javax.swing.text.html.HTMLFrameHyperlinkEvent)"><!-- --></A><H3>
processHTMLFrameHyperlinkEvent</H3>
<PRE>
public void <B>processHTMLFrameHyperlinkEvent</B>(<A HREF="../../../../javax/swing/text/html/HTMLFrameHyperlinkEvent.html">HTMLFrameHyperlinkEvent</A>&nbsp;e)</PRE>
<DL>
<DD>This method is responsible for processing HyperlinkEvent's that
 are generated by documents in an HTML frame.  The HyperlinkEvent
 type, as the parameter suggests, is HTMLFrameHyperlinkEvent.
 In addition to the typical information contained in a HyperlinkEvent,
 this event contains the element that corresponds to the frame in
 which the click happened, (i.e. the source element) and the
 target name.  The target name has 4 possible values:
    1) _self
	  2) _parent
    3) _top
	  4) a named frame

 If target is _self, the action is to change the value of the
 HTML.Attribute.SRC attribute and fires a ChangedUpdate event.

 If the target is _parent, then it deletes the parent element,
 which is a <frameset> element, and inserts a new <frame> element
 and sets its HTML.Attribute.SRC attribute to have a value equal
 to the destination url and fire an RemovedUpdate and InsertUpdate.

 If the target is _top, this method does nothing. In the implementation
 of the view for a frame, namely the FrameView, the processing of _top
 is handled.  Given that _top implies replacing the entire document,
 it made sense to handle this outside of the document that it will 
 replace.

 If the target is a named frame, then the element hierarchy is searched
 for an element with a name equal to the target, its HTML.Attribute.SRC
 attribute is updated and a ChangedUpdate event is fired.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>HTMLFrameHyperLinkEvent</CODE> - &nbsp;</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/HTMLDocument.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/HTML.UnknownTag.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../javax/swing/text/html/HTMLDocument.BlockElement.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="HTMLDocument.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&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>
