tom.library.xml
Class TNodeToXML

java.lang.Object
  extended by tom.library.xml.TNodeToXML

public class TNodeToXML
extends Object


Constructor Summary
TNodeToXML()
           
 
Method Summary
 void setOutputStream(OutputStream out)
          Set up the output stream
 void setWriter(Writer writer)
          Set up the writer
 void tnodeToXML(TNode n)
          Convert a TNode to XML
 String xml(TNode n)
          Return a string representation of a TNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TNodeToXML

public TNodeToXML()
Method Detail

setOutputStream

public void setOutputStream(OutputStream out)
Set up the output stream

Parameters:
out - the output stream to set up

setWriter

public void setWriter(Writer writer)
Set up the writer

Parameters:
writer - the writer to set up

xml

public String xml(TNode n)
Return a string representation of a TNode

Parameters:
n - the TNode which is converted into xml
Returns:
a string representation of the xml node

tnodeToXML

public void tnodeToXML(TNode n)
Convert a TNode to XML

Parameters:
n - the TNode to convert
Throws:
RuntimeException - in case of problem in DocumentTypeNode