Obtain a new instance of a TransformerFactory
from factory class name.
This function is useful when there are multiple providers in the classpath.
It gives more control to the application as it can specify which provider
should be loaded.
Once an application has obtained a reference to a
TransformerFactory
it can use the factory to configure
and obtain transformer instances.
Setting the jaxp.debug
system property will cause
this method to print a lot of debug messages
to System.err
about what it is doing and where it is looking at.
If you have problems try:
java -Djaxp.debug=1 YourProgram ....
factoryClassName | fully qualified factory class name that provides implementation of javax.xml.transform.TransformerFactory . | |
classLoader | ClassLoader used to load the factory class. If null
current Thread 's context classLoader is used to load the factory class. |
TransformerFactoryConfigurationError
| if factoryClassName is null , or
the factory class cannot be loaded, instantiated. |
newInstance()
Diagram: Transformer