xmlBlaster 2.1.0 API

org.xmlBlaster.util
Class JAXPFactory

java.lang.Object
  extended by org.xmlBlaster.util.JAXPFactory

public class JAXPFactory
extends java.lang.Object

Factory for JAXP factories.

Use this factory when you need to localy override the System default settings for the JAXP parser and transformer factories.

Author:
Peter Antman

Field Summary
private static JAXPFactory factory
           
 
Constructor Summary
JAXPFactory()
           
 
Method Summary
static javax.xml.parsers.DocumentBuilderFactory newDocumentBuilderFactory()
          Use the default DocumentBuilderFactory.
static javax.xml.parsers.DocumentBuilderFactory newDocumentBuilderFactory(java.lang.String factoryName)
          Use the DocumentBuilderFactory class specifyed.
static javax.xml.parsers.SAXParserFactory newSAXParserFactory()
          Use the default SAXParserFactory.
static javax.xml.parsers.SAXParserFactory newSAXParserFactory(java.lang.String factoryName)
          Use the SAXParserFactory class specifyed.
static javax.xml.transform.TransformerFactory newTransformerFactory()
          Use the default TransformerFactory.
static javax.xml.transform.TransformerFactory newTransformerFactory(java.lang.String factoryName)
          Use the TransformerFactory class specifyed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private static final JAXPFactory factory
Constructor Detail

JAXPFactory

public JAXPFactory()
Method Detail

newSAXParserFactory

public static javax.xml.parsers.SAXParserFactory newSAXParserFactory()
                                                              throws javax.xml.parsers.FactoryConfigurationError
Use the default SAXParserFactory.

Throws:
javax.xml.parsers.FactoryConfigurationError

newSAXParserFactory

public static javax.xml.parsers.SAXParserFactory newSAXParserFactory(java.lang.String factoryName)
                                                              throws javax.xml.parsers.FactoryConfigurationError
Use the SAXParserFactory class specifyed.

Throws:
javax.xml.parsers.FactoryConfigurationError

newDocumentBuilderFactory

public static javax.xml.parsers.DocumentBuilderFactory newDocumentBuilderFactory()
                                                                          throws javax.xml.parsers.FactoryConfigurationError
Use the default DocumentBuilderFactory.

Throws:
javax.xml.parsers.FactoryConfigurationError

newDocumentBuilderFactory

public static javax.xml.parsers.DocumentBuilderFactory newDocumentBuilderFactory(java.lang.String factoryName)
                                                                          throws javax.xml.parsers.FactoryConfigurationError
Use the DocumentBuilderFactory class specifyed.

Throws:
javax.xml.parsers.FactoryConfigurationError

newTransformerFactory

public static javax.xml.transform.TransformerFactory newTransformerFactory()
                                                                    throws javax.xml.transform.TransformerFactoryConfigurationError
Use the default TransformerFactory.

Throws:
javax.xml.transform.TransformerFactoryConfigurationError

newTransformerFactory

public static javax.xml.transform.TransformerFactory newTransformerFactory(java.lang.String factoryName)
                                                                    throws javax.xml.transform.TransformerFactoryConfigurationError
Use the TransformerFactory class specifyed.

Throws:
javax.xml.transform.TransformerFactoryConfigurationError

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.