javax.swing.text.html
Class HTMLWriter

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.text.AbstractWriter sample code for javax.swing.text.AbstractWriter definition code for javax.swing.text.AbstractWriter 
      extended by javax.swing.text.html.HTMLWriter

public class HTMLWriter
extends AbstractWriter sample code for javax.swing.text.AbstractWriter definition code for javax.swing.text.AbstractWriter

This is a writer for HTMLDocuments.


Field Summary
 
Fields inherited from class javax.swing.text.AbstractWriter sample code for javax.swing.text.AbstractWriter definition code for javax.swing.text.AbstractWriter
NEWLINE sample code for javax.swing.text.AbstractWriter.NEWLINE definition code for javax.swing.text.AbstractWriter.NEWLINE
 
Constructor Summary
HTMLWriter sample code for javax.swing.text.html.HTMLWriter.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument) definition code for javax.swing.text.html.HTMLWriter.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument) (Writer sample code for java.io.Writer definition code for java.io.Writer  w, HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc)
          Creates a new HTMLWriter.
HTMLWriter sample code for javax.swing.text.html.HTMLWriter.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument, int, int) definition code for javax.swing.text.html.HTMLWriter.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument, int, int) (Writer sample code for java.io.Writer definition code for java.io.Writer  w, HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc, int pos, int len)
          Creates a new HTMLWriter.
 
Method Summary
protected  void closeOutUnwantedEmbeddedTags sample code for javax.swing.text.html.HTMLWriter.closeOutUnwantedEmbeddedTags(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.closeOutUnwantedEmbeddedTags(javax.swing.text.AttributeSet) (AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
          Searches the attribute set and for each tag that is stored in the tag vector.
protected  void comment sample code for javax.swing.text.html.HTMLWriter.comment(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.comment(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Writes out comments.
protected  void emptyTag sample code for javax.swing.text.html.HTMLWriter.emptyTag(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.emptyTag(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Writes out all empty elements (all tags that have no corresponding end tag).
protected  void endTag sample code for javax.swing.text.html.HTMLWriter.endTag(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.endTag(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Writes out an end tag for the element.
protected  boolean isBlockTag sample code for javax.swing.text.html.HTMLWriter.isBlockTag(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.isBlockTag(javax.swing.text.AttributeSet) (AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
          Determines if the HTML.Tag associated with the element is a block tag.
protected  boolean matchNameAttribute sample code for javax.swing.text.html.HTMLWriter.matchNameAttribute(javax.swing.text.AttributeSet, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLWriter.matchNameAttribute(javax.swing.text.AttributeSet, javax.swing.text.html.HTML.Tag) (AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr, HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  tag)
          Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.
protected  void output sample code for javax.swing.text.html.HTMLWriter.output(char[], int, int) definition code for javax.swing.text.html.HTMLWriter.output(char[], int, int) (char[] chars, int start, int length)
          This method is overriden to map any character entities, such as < to &lt;.
protected  void selectContent sample code for javax.swing.text.html.HTMLWriter.selectContent(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.selectContent(javax.swing.text.AttributeSet) (AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
          Writes out the content of the SELECT form element.
protected  void startTag sample code for javax.swing.text.html.HTMLWriter.startTag(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.startTag(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Writes out a start tag for the element.
protected  boolean synthesizedElement sample code for javax.swing.text.html.HTMLWriter.synthesizedElement(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.synthesizedElement(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Returns true if the element is a synthesized element.
protected  void text sample code for javax.swing.text.html.HTMLWriter.text(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.text(javax.swing.text.Element) (Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
          Writes out text.
protected  void textAreaContent sample code for javax.swing.text.html.HTMLWriter.textAreaContent(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.textAreaContent(javax.swing.text.AttributeSet) (AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
          Writes out text that is contained in a TEXTAREA form element.
 void write sample code for javax.swing.text.html.HTMLWriter.write() definition code for javax.swing.text.html.HTMLWriter.write() ()
          Iterates over the Element tree and controls the writing out of all the tags and its attributes.
protected  void writeAttributes sample code for javax.swing.text.html.HTMLWriter.writeAttributes(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.writeAttributes(javax.swing.text.AttributeSet) (AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
          Writes out the attribute set.
protected  void writeEmbeddedTags sample code for javax.swing.text.html.HTMLWriter.writeEmbeddedTags(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.writeEmbeddedTags(javax.swing.text.AttributeSet) (AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
          Searches for embedded tags in the AttributeSet and writes them out.
protected  void writeLineSeparator sample code for javax.swing.text.html.HTMLWriter.writeLineSeparator() definition code for javax.swing.text.html.HTMLWriter.writeLineSeparator() ()
          Writes the line separator.
protected  void writeOption sample code for javax.swing.text.html.HTMLWriter.writeOption(javax.swing.text.html.Option) definition code for javax.swing.text.html.HTMLWriter.writeOption(javax.swing.text.html.Option) (Option sample code for javax.swing.text.html.Option definition code for javax.swing.text.html.Option  option)
          Writes out the content of the Option form element.
 
Methods inherited from class javax.swing.text.AbstractWriter sample code for javax.swing.text.AbstractWriter definition code for javax.swing.text.AbstractWriter
decrIndent sample code for javax.swing.text.AbstractWriter.decrIndent() definition code for javax.swing.text.AbstractWriter.decrIndent() , getCanWrapLines sample code for javax.swing.text.AbstractWriter.getCanWrapLines() definition code for javax.swing.text.AbstractWriter.getCanWrapLines() , getCurrentLineLength sample code for javax.swing.text.AbstractWriter.getCurrentLineLength() definition code for javax.swing.text.AbstractWriter.getCurrentLineLength() , getDocument sample code for javax.swing.text.AbstractWriter.getDocument() definition code for javax.swing.text.AbstractWriter.getDocument() , getElementIterator sample code for javax.swing.text.AbstractWriter.getElementIterator() definition code for javax.swing.text.AbstractWriter.getElementIterator() , getEndOffset sample code for javax.swing.text.AbstractWriter.getEndOffset() definition code for javax.swing.text.AbstractWriter.getEndOffset() , getIndentLevel sample code for javax.swing.text.AbstractWriter.getIndentLevel() definition code for javax.swing.text.AbstractWriter.getIndentLevel() , getIndentSpace sample code for javax.swing.text.AbstractWriter.getIndentSpace() definition code for javax.swing.text.AbstractWriter.getIndentSpace() , getLineLength sample code for javax.swing.text.AbstractWriter.getLineLength() definition code for javax.swing.text.AbstractWriter.getLineLength() , getLineSeparator sample code for javax.swing.text.AbstractWriter.getLineSeparator() definition code for javax.swing.text.AbstractWriter.getLineSeparator() , getStartOffset sample code for javax.swing.text.AbstractWriter.getStartOffset() definition code for javax.swing.text.AbstractWriter.getStartOffset() , getText sample code for javax.swing.text.AbstractWriter.getText(javax.swing.text.Element) definition code for javax.swing.text.AbstractWriter.getText(javax.swing.text.Element) , getWriter sample code for javax.swing.text.AbstractWriter.getWriter() definition code for javax.swing.text.AbstractWriter.getWriter() , incrIndent sample code for javax.swing.text.AbstractWriter.incrIndent() definition code for javax.swing.text.AbstractWriter.incrIndent() , indent sample code for javax.swing.text.AbstractWriter.indent() definition code for javax.swing.text.AbstractWriter.indent() , inRange sample code for javax.swing.text.AbstractWriter.inRange(javax.swing.text.Element) definition code for javax.swing.text.AbstractWriter.inRange(javax.swing.text.Element) , isLineEmpty sample code for javax.swing.text.AbstractWriter.isLineEmpty() definition code for javax.swing.text.AbstractWriter.isLineEmpty() , setCanWrapLines sample code for javax.swing.text.AbstractWriter.setCanWrapLines(boolean) definition code for javax.swing.text.AbstractWriter.setCanWrapLines(boolean) , setCurrentLineLength sample code for javax.swing.text.AbstractWriter.setCurrentLineLength(int) definition code for javax.swing.text.AbstractWriter.setCurrentLineLength(int) , setIndentSpace sample code for javax.swing.text.AbstractWriter.setIndentSpace(int) definition code for javax.swing.text.AbstractWriter.setIndentSpace(int) , setLineLength sample code for javax.swing.text.AbstractWriter.setLineLength(int) definition code for javax.swing.text.AbstractWriter.setLineLength(int) , setLineSeparator sample code for javax.swing.text.AbstractWriter.setLineSeparator(java.lang.String) definition code for javax.swing.text.AbstractWriter.setLineSeparator(java.lang.String) , write sample code for javax.swing.text.AbstractWriter.write(char) definition code for javax.swing.text.AbstractWriter.write(char) , write sample code for javax.swing.text.AbstractWriter.write(char[], int, int) definition code for javax.swing.text.AbstractWriter.write(char[], int, int) , write sample code for javax.swing.text.AbstractWriter.write(java.lang.String) definition code for javax.swing.text.AbstractWriter.write(java.lang.String)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

HTMLWriter sample code for javax.swing.text.html.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument) definition code for javax.swing.text.html.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument)

public HTMLWriter(Writer sample code for java.io.Writer definition code for java.io.Writer  w,
                  HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc)
Creates a new HTMLWriter.

Parameters:
w - a Writer
doc - an HTMLDocument

HTMLWriter sample code for javax.swing.text.html.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument, int, int) definition code for javax.swing.text.html.HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument, int, int)

public HTMLWriter(Writer sample code for java.io.Writer definition code for java.io.Writer  w,
                  HTMLDocument sample code for javax.swing.text.html.HTMLDocument definition code for javax.swing.text.html.HTMLDocument  doc,
                  int pos,
                  int len)
Creates a new HTMLWriter.

Parameters:
w - a Writer
doc - an HTMLDocument
pos - the document location from which to fetch the content
len - the amount to write out
Method Detail

write sample code for javax.swing.text.html.HTMLWriter.write() definition code for javax.swing.text.html.HTMLWriter.write()

public void write()
           throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                  BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException 
Iterates over the Element tree and controls the writing out of all the tags and its attributes.

Specified by:
write sample code for javax.swing.text.AbstractWriter.write() definition code for javax.swing.text.AbstractWriter.write() in class AbstractWriter sample code for javax.swing.text.AbstractWriter definition code for javax.swing.text.AbstractWriter
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error
BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException - if pos represents an invalid location within the document.

writeAttributes sample code for javax.swing.text.html.HTMLWriter.writeAttributes(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.writeAttributes(javax.swing.text.AttributeSet)

protected void writeAttributes(AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
                        throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out the attribute set. Ignores all attributes with a key of type HTML.Tag, attributes with a key of type StyleConstants, and attributes with a key of type HTML.Attribute.ENDTAG.

Overrides:
writeAttributes sample code for javax.swing.text.AbstractWriter.writeAttributes(javax.swing.text.AttributeSet) definition code for javax.swing.text.AbstractWriter.writeAttributes(javax.swing.text.AttributeSet) in class AbstractWriter sample code for javax.swing.text.AbstractWriter definition code for javax.swing.text.AbstractWriter
Parameters:
attr - an AttributeSet
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error

emptyTag sample code for javax.swing.text.html.HTMLWriter.emptyTag(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.emptyTag(javax.swing.text.Element)

protected void emptyTag(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
                 throws BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out all empty elements (all tags that have no corresponding end tag).

Parameters:
elem - an Element
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error
BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException - if pos represents an invalid location within the document.

isBlockTag sample code for javax.swing.text.html.HTMLWriter.isBlockTag(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.isBlockTag(javax.swing.text.AttributeSet)

protected boolean isBlockTag(AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
Determines if the HTML.Tag associated with the element is a block tag.

Parameters:
attr - an AttributeSet
Returns:
true if tag is block tag, false otherwise.

startTag sample code for javax.swing.text.html.HTMLWriter.startTag(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.startTag(javax.swing.text.Element)

protected void startTag(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException 
Writes out a start tag for the element. Ignores all synthesized elements.

Parameters:
elem - an Element
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error
BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException

textAreaContent sample code for javax.swing.text.html.HTMLWriter.textAreaContent(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.textAreaContent(javax.swing.text.AttributeSet)

protected void textAreaContent(AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
                        throws BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException ,
                               IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out text that is contained in a TEXTAREA form element.

Parameters:
attr - an AttributeSet
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error
BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException - if pos represents an invalid location within the document.

text sample code for javax.swing.text.html.HTMLWriter.text(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.text(javax.swing.text.Element)

protected void text(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
             throws BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException ,
                    IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out text. If a range is specified when the constructor is invoked, then only the appropriate range of text is written out.

Overrides:
text sample code for javax.swing.text.AbstractWriter.text(javax.swing.text.Element) definition code for javax.swing.text.AbstractWriter.text(javax.swing.text.Element) in class AbstractWriter sample code for javax.swing.text.AbstractWriter definition code for javax.swing.text.AbstractWriter
Parameters:
elem - an Element
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error
BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException - if pos represents an invalid location within the document.

selectContent sample code for javax.swing.text.html.HTMLWriter.selectContent(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.selectContent(javax.swing.text.AttributeSet)

protected void selectContent(AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
                      throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out the content of the SELECT form element.

Parameters:
attr - the AttributeSet associated with the form element
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error

writeOption sample code for javax.swing.text.html.HTMLWriter.writeOption(javax.swing.text.html.Option) definition code for javax.swing.text.html.HTMLWriter.writeOption(javax.swing.text.html.Option)

protected void writeOption(Option sample code for javax.swing.text.html.Option definition code for javax.swing.text.html.Option  option)
                    throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out the content of the Option form element.

Parameters:
option - an Option
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error

endTag sample code for javax.swing.text.html.HTMLWriter.endTag(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.endTag(javax.swing.text.Element)

protected void endTag(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
               throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out an end tag for the element.

Parameters:
elem - an Element
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error

comment sample code for javax.swing.text.html.HTMLWriter.comment(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.comment(javax.swing.text.Element)

protected void comment(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
                throws BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException ,
                       IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes out comments.

Parameters:
elem - an Element
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error
BadLocationException sample code for javax.swing.text.BadLocationException definition code for javax.swing.text.BadLocationException - if pos represents an invalid location within the document.

synthesizedElement sample code for javax.swing.text.html.HTMLWriter.synthesizedElement(javax.swing.text.Element) definition code for javax.swing.text.html.HTMLWriter.synthesizedElement(javax.swing.text.Element)

protected boolean synthesizedElement(Element sample code for javax.swing.text.Element definition code for javax.swing.text.Element  elem)
Returns true if the element is a synthesized element. Currently we are only testing for the p-implied tag.


matchNameAttribute sample code for javax.swing.text.html.HTMLWriter.matchNameAttribute(javax.swing.text.AttributeSet, javax.swing.text.html.HTML.Tag) definition code for javax.swing.text.html.HTMLWriter.matchNameAttribute(javax.swing.text.AttributeSet, javax.swing.text.html.HTML.Tag)

protected boolean matchNameAttribute(AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr,
                                     HTML.Tag sample code for javax.swing.text.html.HTML.Tag definition code for javax.swing.text.html.HTML.Tag  tag)
Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.


writeEmbeddedTags sample code for javax.swing.text.html.HTMLWriter.writeEmbeddedTags(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.writeEmbeddedTags(javax.swing.text.AttributeSet)

protected void writeEmbeddedTags(AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
                          throws IOException sample code for java.io.IOException definition code for java.io.IOException 
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.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - on any I/O error

closeOutUnwantedEmbeddedTags sample code for javax.swing.text.html.HTMLWriter.closeOutUnwantedEmbeddedTags(javax.swing.text.AttributeSet) definition code for javax.swing.text.html.HTMLWriter.closeOutUnwantedEmbeddedTags(javax.swing.text.AttributeSet)

protected void closeOutUnwantedEmbeddedTags(AttributeSet sample code for javax.swing.text.AttributeSet definition code for javax.swing.text.AttributeSet  attr)
                                     throws