com.softwareag.tamino.db.api.objectModel.dom
Class TDOMWriter

java.lang.Object
  extended by com.softwareag.tamino.db.api.objectModel.dom.TDOMWriter

public class TDOMWriter
extends java.lang.Object

The DOMWriter class writes an internal DOM tree to an external representation (XML document) using a java.io.Writer.

Version:
$Revision: 1.17 $
Author:
Marcus Schreyer

Constructor Summary
TDOMWriter()
          Constructor.
 
Method Summary
 java.lang.String getEncodingAttribute()
          Get the encoding string for the XML declaration.
 boolean getExpandEmptyElements()
          Get the expand empty elements flag.
 void setEncodingAttribute(java.lang.String encoding)
          Set the encoding string for the XML declaration.
 void setExpandEmptyElements(boolean expandEmptyElements)
          Set the expand empty elements flag.
 void write(org.w3c.dom.Node node, java.io.Writer output)
          Write the DOM tree specified with a Node object using a given Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TDOMWriter

public TDOMWriter()
Constructor. Initializes the DOMWriter.

Method Detail

setEncodingAttribute

public void setEncodingAttribute(java.lang.String encoding)
Set the encoding string for the XML declaration.

Parameters:
encoding - the enconding string set in the XML declaration.

getEncodingAttribute

public java.lang.String getEncodingAttribute()
Get the encoding string for the XML declaration.

Returns:
the enconding string set in the XML declaration.

setExpandEmptyElements

public void setExpandEmptyElements(boolean expandEmptyElements)
Set the expand empty elements flag.

Parameters:
expandEmptyElements - the expand empty elements flag.

getExpandEmptyElements

public boolean getExpandEmptyElements()
Get the expand empty elements flag.

Returns:
the expand empty elements flag.

write

public void write(org.w3c.dom.Node node,
                  java.io.Writer output)
           throws java.io.IOException
Write the DOM tree specified with a Node object using a given Writer.

Parameters:
node - is the representation of the XML document that should be writen using the given Writer.
output - is used to externalize the given XML document.
Throws:
java.io.IOException


Copyright (c) 2013 Software AG. All Rights Reserved.