API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text.html. HTMLWriter View Source
Author(s)
Sunita Mani
Since
Version
1.26, 02/02/00
Serial
Hierarchy
 Object
      AbstractWriter
          HTMLWriter
Implements
Subclasses
Description
public class HTMLWriter
This is a writer for HTMLDocuments.
See also:   
Constructors
public HTMLWriter (Writer w, HTMLDocument doc)
  Creates a new HTMLWriter.
public HTMLWriter (Writer w, HTMLDocument doc, int pos, int len)
  Creates a new HTMLWriter.
Methods
Hide/Show inherited methods
protected void closeOutUnwantedEmbeddedTags (AttributeSet attr) throws IOException
  Searches the attribute set and for each tag that is stored in the tag vector.
protected void comment (Element elem) throws BadLocationException IOException
  Writes out comments.
pack-private AttributeSet convertToHTML (AttributeSet from, MutableAttributeSet to)
  Convert the give set of attributes to be html for the purpose of writing them out.
protected void decrIndent () [Inherited From AbstractWriter]
Decrements the indent level.
protected void emptyTag (Element elem) throws BadLocationException IOException
  Writes out all empty elements (all tags that have no corresponding end tag).
protected void endTag (Element elem) throws IOException
  Writes out an end tag for the element.
protected boolean getCanWrapLines () [Inherited From AbstractWriter]
  Returns whether or not the lines can be wrapped.
protected int getCurrentLineLength () [Inherited From AbstractWriter]
  Returns the current line length.
protected Document getDocument () [Inherited From AbstractWriter]
  Fetches the document.
protected ElementIterator getElementIterator () [Inherited From AbstractWriter]
  Fetches the ElementIterator.
public int getEndOffset () [Inherited From AbstractWriter]
  Returns the last offset to be output.
protected int getIndentLevel () [Inherited From AbstractWriter]
  Returns the current indentation level.
protected int getIndentSpace () [Inherited From AbstractWriter]
  Returns the amount of space to indent.
protected int getLineLength () [Inherited From AbstractWriter]
  Returns the maximum line length.
public String getLineSeparator () [Inherited From AbstractWriter]
  Returns the string used to represent newlines.
public int getStartOffset () [Inherited From AbstractWriter]
  Returns the first offset to be output.
protected String getText (Element elem) throws BadLocationException [Inherited From AbstractWriter]
  Returns the text associated with the element.
protected Writer getWriter () [Inherited From AbstractWriter]
  Returns the Writer that is used to output the content.
protected void incrIndent () [Inherited From AbstractWriter]
  Increments the indent level.
protected void indent () throws IOException [Inherited From AbstractWriter]
  Does indentation.
protected boolean inRange (Element next) [Inherited From AbstractWriter]
  This method determines whether the current element is in the range specified.
protected boolean isBlockTag (AttributeSet attr)
  Determines if the HTML.Tag associated with the element is a block tag.
protected boolean isLineEmpty () [Inherited From AbstractWriter]
  Returns true if the current line should be considered empty.
protected boolean matchNameAttribute (AttributeSet attr, Tag tag)
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) throws IOException [Overrides AbstractWriter]
  This method is overriden to map any character entities, such as < to &lt;.
protected void selectContent (AttributeSet attr) throws IOException
  Writes out the content of the SELECT form element.
protected void setCanWrapLines (boolean newValue) [Inherited From AbstractWriter]
  Sets whether or not lines can be wrapped.
protected void setCurrentLineLength (int length) [Inherited From AbstractWriter]
  Sets the current line length.
protected void setIndentSpace (int space) [Inherited From AbstractWriter]
  Enables subclasses to specify how many spaces an indent maps to.
protected void setLineLength (int l) [Inherited From AbstractWriter]
  Enables subclasses to set the number of characters they want written per line.
public void setLineSeparator (String value) [Inherited From AbstractWriter]
  Sets the String used to reprsent newlines.
protected void startTag (Element elem) throws IOException BadLocationException
  Writes out a start tag for the element.
protected boolean synthesizedElement (Element elem)
  Returns true if the element is a synthesized element.
protected void text (Element elem) throws BadLocationException IOException [Overrides AbstractWriter]
  Writes out text.
protected void textAreaContent (AttributeSet attr) throws BadLocationException IOException
  Writes out text that is contained in a TEXTAREA form element.
public void write () throws IOException BadLocationException [Specified in AbstractWriter]
  Iterates over the Element tree and controls the writing out of all the tags and its attributes.
protected void write (char ch) throws IOException [Inherited From AbstractWriter]
  Writes out a character.
protected void write (char[] chars, int startIndex, int length) throws IOException [Inherited From AbstractWriter]
  All write methods call into this one.
protected void write (String content) throws IOException [Inherited From AbstractWriter]
  Writes out a string.
pack-private void writeAdditionalComments () throws IOException
Writes out any additional comments (comments outside of the body) stored under the property HTMLDocument.AdditionalComments.
protected void writeAttributes (AttributeSet attr) throws IOException [Overrides AbstractWriter]
  Writes out the attribute set.
pack-private void writeComment (String string) throws IOException
  Writes out comment string.
protected void writeEmbeddedTags (AttributeSet attr) throws IOException
  Searches for embedded tags in the AttributeSet and writes them out.
protected void writeLineSeparator () throws IOException [Overrides AbstractWriter]
  Writes the line separator.
pack-private void writeMaps (Enumeration maps) throws IOException
  Outputs the maps as elements.
protected void writeOption (Option option) throws IOException
  Writes out the content of the Option form element.
pack-private boolean writeStyle (String name, Style style, boolean outputStyle) throws IOException
  Outputs the named style.
pack-private void writeStyleEndTag () throws IOException
pack-private void writeStyles (StyleSheet sheet) throws IOException
  Outputs the styles as a single element.
pack-private void writeStyleStartTag () throws IOException
Fields
Hide/Show inherited fields
protectedfinalstatic char NEWLINE = "10" [Inherited From AbstractWriter]
  How the text packages models newlines.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar