org.freehep.xml.util
Class XHTMLWriter

java.lang.Object
  extended by org.freehep.xml.util.XMLWriter
      extended by org.freehep.xml.util.XHTMLWriter
All Implemented Interfaces:
XMLTagWriter

public class XHTMLWriter
extends XMLWriter

A class that makes it easy to write XHTML documents.

Version:
$Id: XHTMLWriter.java 8584 2006-08-10 23:06:37Z duns $
Author:
Mark Donszelmann

Field Summary
 
Fields inherited from class org.freehep.xml.util.XMLWriter
closed, defaultNameSpace, writer
 
Constructor Summary
XHTMLWriter(Writer w)
           
XHTMLWriter(Writer w, String indentString, String type)
           
 
Method Summary
 void closeDoc()
          Closes the document, and checks if you closed all the tags
 void printPlain(String text)
          Prints text as is (no escaping of anything)
 void printTag(String name)
          Prints an empty XML tag.
 void setAttribute(String name, boolean value)
          Set boolean attribute
 
Methods inherited from class org.freehep.xml.util.XMLWriter
checkNameValid, close, closeTag, normalize, normalizeText, openDoc, openDoc, openTag, openTag, print, print, printAttributes, printComment, println, printTag, referToDTD, referToDTD, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHTMLWriter

public XHTMLWriter(Writer w,
                   String indentString,
                   String type)
Parameters:
type - [strict, transitional, frameset]

XHTMLWriter

public XHTMLWriter(Writer w)
Method Detail

closeDoc

public void closeDoc()
Description copied from class: XMLWriter
Closes the document, and checks if you closed all the tags

Specified by:
closeDoc in interface XMLTagWriter
Overrides:
closeDoc in class XMLWriter

printTag

public void printTag(String name)
Description copied from class: XMLWriter
Prints an empty XML tag.

Specified by:
printTag in interface XMLTagWriter
Overrides:
printTag in class XMLWriter
Parameters:
name - tagname

setAttribute

public void setAttribute(String name,
                         boolean value)
Description copied from interface: XMLTagWriter
Set boolean attribute

Specified by:
setAttribute in interface XMLTagWriter
Overrides:
setAttribute in class XMLWriter
Parameters:
name - attribute name
value - attribute value

printPlain

public void printPlain(String text)
Prints text as is (no escaping of anything)



Copyright © 2000-2007 FreeHEP. All Rights Reserved.