org.dbforms.dom
Class DOMFactoryXALANImpl

java.lang.Object
  extended by org.dbforms.dom.AbstractDOMFactoryImpl
      extended by org.dbforms.dom.DOMFactoryXALANImpl
All Implemented Interfaces:
IDOMFactory

public class DOMFactoryXALANImpl
extends AbstractDOMFactoryImpl

special implementation of the DOMFactory for xerces/xalan implementation, This is the default class used by DOMFactory!

Author:
Henner Kollmann

Constructor Summary
DOMFactoryXALANImpl()
           
 
Method Summary
 String DOM2String(Document doc)
          Creates a string representation of the given DOMDocument
 Document newDOMDocument()
          Creates a new empty DOMDocument
 org.w3c.dom.xpath.XPathEvaluator newXPathEvaluator()
          returns an new created XPathEvaluator
 Document read(InputStream in)
          Reads a DOMDocument from given url
 Document String2DOM(String data)
          Creates an new DOMDocument from the given string
 void write(OutputStream out, Element root)
          Writes a DOMDocument into an OutputStream
 
Methods inherited from class org.dbforms.dom.AbstractDOMFactoryImpl
read, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMFactoryXALANImpl

public DOMFactoryXALANImpl()
Method Detail

DOM2String

public String DOM2String(Document doc)
Creates a string representation of the given DOMDocument

Specified by:
DOM2String in interface IDOMFactory
Specified by:
DOM2String in class AbstractDOMFactoryImpl
Parameters:
doc - The document to transform
Returns:
string representation

String2DOM

public Document String2DOM(String data)
Creates an new DOMDocument from the given string

Specified by:
String2DOM in interface IDOMFactory
Specified by:
String2DOM in class AbstractDOMFactoryImpl
Parameters:
data - the string to parse
Returns:
The new DOMDocument

newDOMDocument

public Document newDOMDocument()
Creates a new empty DOMDocument

Specified by:
newDOMDocument in interface IDOMFactory
Specified by:
newDOMDocument in class AbstractDOMFactoryImpl
Returns:
An empty DOMDocument

newXPathEvaluator

public org.w3c.dom.xpath.XPathEvaluator newXPathEvaluator()
returns an new created XPathEvaluator

Specified by:
newXPathEvaluator in interface IDOMFactory
Specified by:
newXPathEvaluator in class AbstractDOMFactoryImpl
Returns:
the new XPathEvaluator

read

public Document read(InputStream in)
Reads a DOMDocument from given url

Specified by:
read in interface IDOMFactory
Specified by:
read in class AbstractDOMFactoryImpl
Parameters:
in - the url to read from
Returns:
The new parsed DOMDocument

write

public void write(OutputStream out,
                  Element root)
Writes a DOMDocument into an OutputStream

Specified by:
write in interface IDOMFactory
Specified by:
write in class AbstractDOMFactoryImpl
Parameters:
out - OutputStream to write into
root - The Ddcument to write


Copyright © 2002-2006 DbForms. All Rights Reserved.