TV-Browser 2.7.5 API

util.io
Class XMLWriter

java.lang.Object
  extended by util.io.XMLWriter

public class XMLWriter
extends Object

Creates a String representation of a XML-Document. Really simple, no Attributes, only Nodes and TextNodes, no PI's and stuff

Author:
bodum

Constructor Summary
XMLWriter()
           
 
Method Summary
 String getStringForDocument(org.w3c.dom.Document doc, String encoding)
          Returns a String containg the XML-Document
 String getStringForNode(org.w3c.dom.Node node)
          Returns a String for a Node
 void writeDocumentToOutputStream(org.w3c.dom.Document doc, OutputStream out, String encoding)
          Writes a Document into an Outputstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriter

public XMLWriter()
Method Detail

getStringForDocument

public String getStringForDocument(org.w3c.dom.Document doc,
                                   String encoding)
Returns a String containg the XML-Document

Parameters:
doc - Document
encoding - Encoding
Returns:
Document as String

getStringForNode

public String getStringForNode(org.w3c.dom.Node node)
Returns a String for a Node

Parameters:
node - Node
Returns:
String-Represenation of Node

writeDocumentToOutputStream

public void writeDocumentToOutputStream(org.w3c.dom.Document doc,
                                        OutputStream out,
                                        String encoding)
                                 throws IOException
Writes a Document into an Outputstream

Parameters:
doc - Document
out - Outputstream
encoding - Encoding to use
Throws:
IOException - Exception if write failed

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)