|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.xslt.TransformerFactory
public class TransformerFactory
Provides a thread safe way to get a single usage XSLT transformer based on the thread safe template. This class also offers the ability to specify/ override the application's default XSLT transformation engine.
NOTE: XSLTc could be used to improve performance and resource utilization.
However, since most users of the IBISPH-IRV system should use the artifact
mechanism, implementing XSLTc was not pursued.
This does NOT: "implements java.io.Serializable" because there isn't a
reason to persist/distribute across machines.
| Field Summary | |
|---|---|
protected static javax.xml.transform.TransformerFactory |
transformerFactory
|
| Constructor Summary | |
|---|---|
TransformerFactory()
Default factory constructor which uses the JAPX TransformerFactory. |
|
TransformerFactory(java.lang.String transformerFactoryClassName)
Factory constructor which allows a for a different non default JAXP TransformerFactory to be used. |
|
| Method Summary | |
|---|---|
static javax.xml.transform.Transformer |
newTransformer(javax.xml.transform.Source xsltSource)
Thread safe, factory method that produces an un-cached/un-managed XSLT transformer. |
static javax.xml.transform.Transformer |
newTransformer(java.lang.String xsltURISystemID)
Thread safe, factory method that produces an un-cached/un-managed XSLT transformer. |
static void |
setTransformerFactoryClassName(java.lang.String transformerFactoryClassName)
Sets specified XSLT Transformation Engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static javax.xml.transform.TransformerFactory transformerFactory
| Constructor Detail |
|---|
public TransformerFactory()
public TransformerFactory(java.lang.String transformerFactoryClassName)
transformerFactoryClassName - Fully qualified class name of the
transformation factory to use.| Method Detail |
|---|
public static void setTransformerFactoryClassName(java.lang.String transformerFactoryClassName)
transformerFactoryClassName - Fully qualified class name of the
transformation factory to use.
public static javax.xml.transform.Transformer newTransformer(java.lang.String xsltURISystemID)
throws javax.xml.transform.TransformerConfigurationException,
java.io.FileNotFoundException
xsltURISystemID - XSLT stylesheet file to be parsed and cached.
javax.xml.transform.TransformerConfigurationException
java.io.FileNotFoundException
public static javax.xml.transform.Transformer newTransformer(javax.xml.transform.Source xsltSource)
throws javax.xml.transform.TransformerConfigurationException
xsltSource - the javax.xml.tarnsform.Source XSLT stylesheet.
javax.xml.transform.TransformerConfigurationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||