net.sf.vex.dom
Class DocumentFactory

java.lang.Object
  |
  +--net.sf.vex.dom.DocumentFactory

public class DocumentFactory
extends java.lang.Object

Class for creating documents given a URL.


Constructor Summary
DocumentFactory()
           
 
Method Summary
static Document create(java.net.URL url, org.xml.sax.EntityResolver resolver)
          Creates a document given a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentFactory

public DocumentFactory()
Method Detail

create

public static Document create(java.net.URL url,
                              org.xml.sax.EntityResolver resolver)
                       throws java.io.IOException,
                              javax.xml.parsers.ParserConfigurationException,
                              org.xml.sax.SAXException
Creates a document given a URL.

Parameters:
url - URL from which to load the document.
resolver - EntityResolver that returns local versions of the given entities. May be null, in which case the default is used.
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException