org.opcfoundation.ua.utils
Class XMLFactoryCache

java.lang.Object
  extended by org.opcfoundation.ua.utils.XMLFactoryCache

public class XMLFactoryCache
extends Object

A cache for XXXFactory instances which are needed in XML processing. Idea is that this is the common place to find a factory so it needs to be created only once (which is a time-consuming operation).

Author:
Bjakke

Constructor Summary
XMLFactoryCache()
           
 
Method Summary
static DocumentBuilderFactory getDocumentBuilderFactory()
          getDocumentBuilderFactory.
static SAXTransformerFactory getSAXTransformerFactory()
          getSAXTransformerFactory.
static TransformerFactory getTransformerFactory()
          getTransformerFactory.
static XMLInputFactory getXMLInputFactory()
          getXMLInputFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFactoryCache

public XMLFactoryCache()
Method Detail

getDocumentBuilderFactory

public static DocumentBuilderFactory getDocumentBuilderFactory()

getDocumentBuilderFactory.

Returns:
a DocumentBuilderFactory object.

getSAXTransformerFactory

public static SAXTransformerFactory getSAXTransformerFactory()

getSAXTransformerFactory.

Returns:
a SAXTransformerFactory object.

getTransformerFactory

public static TransformerFactory getTransformerFactory()

getTransformerFactory.

Returns:
a TransformerFactory object.

getXMLInputFactory

public static XMLInputFactory getXMLInputFactory()

getXMLInputFactory.

Returns:
a XMLInputFactory object.


Copyright © 2018. All rights reserved.