cdqa.dom
Class JAXPDOMFactory

java.lang.Object
  extended by cdqa.dom.JAXPDOMFactory
All Implemented Interfaces:
DOMFactory

public final class JAXPDOMFactory
extends java.lang.Object
implements DOMFactory

implementation of the DOMFactory interface, using JAXP DOM implementation and parser


Constructor Summary
JAXPDOMFactory()
           
 
Method Summary
 org.w3c.dom.Document createDocument()
          create a new document
 org.w3c.dom.Document parse(java.lang.String fileName)
          parse a document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXPDOMFactory

public JAXPDOMFactory()
Method Detail

createDocument

public org.w3c.dom.Document createDocument()
create a new document

Specified by:
createDocument in interface DOMFactory

parse

public org.w3c.dom.Document parse(java.lang.String fileName)
                           throws java.lang.Exception
parse a document

Specified by:
parse in interface DOMFactory
Throws:
java.lang.Exception