freemind.main
Class FixedHTMLWriter

java.lang.Object
  extended by javax.swing.text.AbstractWriter
      extended by javax.swing.text.html.HTMLWriter
          extended by freemind.main.FixedHTMLWriter
Direct Known Subclasses:
XHTMLWriter

public class FixedHTMLWriter
extends javax.swing.text.html.HTMLWriter

Create a new XHTMLWriter which is able to save a HTMLDocument as XHTML.

The result will be a valid XML file, but it is not granted that the file will really be XHTML 1.0 transitional conformous. The basic purpose of this class is to give an XSL processor access to plain HTML files.

Author:
Richard "Shred" K�rber

Field Summary
 
Fields inherited from class javax.swing.text.AbstractWriter
NEWLINE
 
Constructor Summary
FixedHTMLWriter(java.io.Writer writer, javax.swing.text.html.HTMLDocument doc)
          Create a new XHTMLWriter that will write the entire HTMLDocument.
FixedHTMLWriter(java.io.Writer writer, javax.swing.text.html.HTMLDocument doc, int pos, int len)
          Create a new XHTMLWriter that will write a part of a HTMLDocument.
 
Method Summary
protected  void writeAttributes(javax.swing.text.AttributeSet attr)
           
 
Methods inherited from class javax.swing.text.html.HTMLWriter
closeOutUnwantedEmbeddedTags, comment, emptyTag, endTag, isBlockTag, matchNameAttribute, output, selectContent, startTag, synthesizedElement, text, textAreaContent, write, writeEmbeddedTags, writeLineSeparator, writeOption
 
Methods inherited from class javax.swing.text.AbstractWriter
decrIndent, getCanWrapLines, getCurrentLineLength, getDocument, getElementIterator, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, indent, inRange, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedHTMLWriter

public FixedHTMLWriter(java.io.Writer writer,
                       javax.swing.text.html.HTMLDocument doc)
Create a new XHTMLWriter that will write the entire HTMLDocument.

Parameters:
writer - Writer to write to
doc - Source document

FixedHTMLWriter

public FixedHTMLWriter(java.io.Writer writer,
                       javax.swing.text.html.HTMLDocument doc,
                       int pos,
                       int len)
Create a new XHTMLWriter that will write a part of a HTMLDocument.

Parameters:
writer - Writer to write to
doc - Source document
pos - Starting position
len - Length
Method Detail

writeAttributes

protected void writeAttributes(javax.swing.text.AttributeSet attr)
                        throws java.io.IOException
Overrides:
writeAttributes in class javax.swing.text.html.HTMLWriter
Throws:
java.io.IOException