Class HTMLWriter

java.lang.Object
javax.swing.text.AbstractWriter
javax.swing.text.html.HTMLWriter

public class HTMLWriter extends AbstractWriter
This is a writer for HTMLDocuments.
  • Field Summary

    Fields declared in class javax.swing.text.AbstractWriter

    NEWLINE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new HTMLWriter.
    HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
    Creates a new HTMLWriter.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Searches the attribute set and for each tag that is stored in the tag vector.
    protected void
    Writes out comments.
    protected void
    Writes out all empty elements (all tags that have no corresponding end tag).
    protected void
    Writes out an end tag for the element.
    protected boolean
    Determines if the HTML.Tag associated with the element is a block tag.
    protected boolean
    Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.
    protected void
    output(char[] chars, int start, int length)
    This method is overridden to map any character entities, such as < to &lt;.
    protected void
    Writes out the content of the SELECT form element.
    protected void
    Writes out a start tag for the element.
    protected boolean
    Returns true if the element is a synthesized element.
    protected void
    text(Element elem)
    Writes out text.
    protected void
    Writes out text that is contained in a TEXTAREA form element.
    void
    Iterates over the Element tree and controls the writing out of all the tags and its attributes.
    protected void
    Writes out the attribute set.
    protected void