uPortal 2.4.1
API Documentation

org.jasig.portal.utils
Class DocumentFactory

java.lang.Object
  extended byorg.jasig.portal.utils.DocumentFactory

public class DocumentFactory
extends java.lang.Object

Produces an empty Document implementation

Version:
$Revision: 1.16.2.1 $
Author:
Bernie Durfee, bdurfee@interactivebusiness.com

Method Summary
static org.w3c.dom.Document getDocumentFromStream(java.io.InputStream stream)
           
static org.w3c.dom.Document getDocumentFromStream(java.io.InputStream stream, org.xml.sax.EntityResolver er)
           
static org.w3c.dom.Document getNewDocument()
          Returns a new copy of a Document implementation.
static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNewDocument

public static org.w3c.dom.Document getNewDocument()
Returns a new copy of a Document implementation. This will return an IPortalDocument implementation.

Returns:
an empty org.w3c.dom.Document implementation

getDocumentFromStream

public static org.w3c.dom.Document getDocumentFromStream(java.io.InputStream stream)
                                                  throws java.io.IOException,
                                                         org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

getDocumentFromStream

public static org.w3c.dom.Document getDocumentFromStream(java.io.InputStream stream,
                                                         org.xml.sax.EntityResolver er)
                                                  throws java.io.IOException,
                                                         org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

newDocumentBuilder

public static javax.xml.parsers.DocumentBuilder newDocumentBuilder()

uPortal 2.4.1
API Documentation