com.taursys.dom
Class HTMLWriter

java.lang.Object
  extended bycom.taursys.dom.AbstractWriter
      extended bycom.taursys.dom.XMLWriter
          extended bycom.taursys.dom.HTMLWriter

public class HTMLWriter
extends XMLWriter

HTMLWriter is a specialization of XMLWriter for writing HTML Documents.

Version:
1.0
Author:
Marty Phelan

Field Summary
protected  java.util.List tags
           
 
Fields inherited from class com.taursys.dom.XMLWriter
printWriter
 
Constructor Summary
HTMLWriter()
          Constructs a new HTMLWriter
 
Method Summary
protected  void writeEmptyElementNode(org.w3c.dom.Node node)
          Writes the given empty element node.
 
Methods inherited from class com.taursys.dom.XMLWriter
normalizeAndPrint, normalizeAndPrint, sortAttributes, write, write, write, writeAttributes, writeElementNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tags

protected java.util.List tags
Constructor Detail

HTMLWriter

public HTMLWriter()
Constructs a new HTMLWriter

Method Detail

writeEmptyElementNode

protected void writeEmptyElementNode(org.w3c.dom.Node node)
Writes the given empty element node. If the given node is a type that must be empty, then a single tag is written without an end tag. It uses the writeAttributes method to generate the attributes for the node. The following are the empty tag types supported:

Overrides:
writeEmptyElementNode in class XMLWriter
Parameters:
node - the element node to write


Copyright © 2007 Martin T Phelan. All Rights Reserved.