FreeHEP API
Version current

org.freehep.xml.util
Class XHTMLWriter

java.lang.Object
  extended byorg.freehep.xml.util.XMLWriter
      extended byorg.freehep.xml.util.XHTMLWriter
Direct Known Subclasses:
HTMLYappiWriter

public class XHTMLWriter
extends XMLWriter

A class that makes it easy to write XHTML documents.

Version:
$Id: XHTMLWriter.java,v 1.5 2002/09/18 23:59:59 duns Exp $
Author:
Mark Donszelmann
Source Code:
XHTMLWriter.java

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)
           
 
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
 
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

Overrides:
closeDoc in class XMLWriter

printTag

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

Overrides:
printTag in class XMLWriter

setAttribute

public void setAttribute(String name,
                         boolean value)
Overrides:
setAttribute in class XMLWriter

printPlain

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


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.