org.jasig.portal.utils
Class DocumentFactory

java.lang.Object
  extended by org.jasig.portal.utils.DocumentFactory

public class DocumentFactory
extends Object

Produces an empty Document implementation

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

Nested Class Summary
protected static class DocumentFactory.LocalDocumentBuilder
           
 
Field Summary
protected static DocumentFactory _instance
           
protected  DocumentBuilderFactory dbFactory
           
protected static DocumentFactory.LocalDocumentBuilder localDocBuilder
           
 
Constructor Summary
protected DocumentFactory()
           
 
Method Summary
static Document getDocumentFromStream(InputStream stream, EntityResolver er, String publicId)
           
static Document getDocumentFromStream(InputStream stream, String publicId)
           
static Document getNewDocument()
          Returns a new copy of a Document implementation.
protected static DocumentFactory instance()
           
static DocumentBuilder newDocumentBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

protected static DocumentFactory _instance

localDocBuilder

protected static final DocumentFactory.LocalDocumentBuilder localDocBuilder

dbFactory

protected DocumentBuilderFactory dbFactory
Constructor Detail

DocumentFactory

protected DocumentFactory()
Method Detail

instance

protected static DocumentFactory instance()

getNewDocument

public static 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 Document getDocumentFromStream(InputStream stream,
                                             String publicId)
                                      throws IOException,
                                             SAXException
Throws:
IOException
SAXException

getDocumentFromStream

public static Document getDocumentFromStream(InputStream stream,
                                             EntityResolver er,
                                             String publicId)
                                      throws IOException,
                                             SAXException
Throws:
IOException
SAXException

newDocumentBuilder

public static DocumentBuilder newDocumentBuilder()


Copyright © 2010 Jasig. All Rights Reserved.