|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.transform.TransformerFactory javax.xml.transform.sax.SAXTransformerFactory org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl
public class SmartTransformerFactoryImpl
Implementation of a transformer factory that uses an XSLTC transformer factory for the creation of Templates objects and uses the Xalan processor transformer factory for the creation of Transformer objects.
Field Summary | |
---|---|
private javax.xml.transform.sax.SAXTransformerFactory |
_currFactory
|
private javax.xml.transform.ErrorListener |
_errorlistener
|
private javax.xml.transform.URIResolver |
_uriresolver
|
private javax.xml.transform.sax.SAXTransformerFactory |
_xalanFactory
|
private javax.xml.transform.sax.SAXTransformerFactory |
_xsltcFactory
|
private static java.lang.String |
CLASS_NAME
Name of class as a constant to use for debugging. |
private boolean |
featureSecureProcessing
State of secure processing feature. |
Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory |
---|
FEATURE, FEATURE_XMLFILTER |
Constructor Summary | |
---|---|
SmartTransformerFactoryImpl()
implementation of the SmartTransformerFactory. |
Method Summary | |
---|---|
private void |
createXalanTransformerFactory()
|
private void |
createXSLTCTransformerFactory()
|
javax.xml.transform.Source |
getAssociatedStylesheet(javax.xml.transform.Source source,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
|
java.lang.Object |
getAttribute(java.lang.String name)
|
javax.xml.transform.ErrorListener |
getErrorListener()
|
boolean |
getFeature(java.lang.String name)
javax.xml.transform.sax.TransformerFactory implementation. |
javax.xml.transform.URIResolver |
getURIResolver()
|
javax.xml.transform.Templates |
newTemplates(javax.xml.transform.Source source)
Create a Templates object that from the input stylesheet Uses the org.apache.xalan.xsltc.trax.TransformerFactory. |
javax.xml.transform.sax.TemplatesHandler |
newTemplatesHandler()
Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object. |
javax.xml.transform.Transformer |
newTransformer()
Create a Transformer object that copies the input document to the result. |
javax.xml.transform.Transformer |
newTransformer(javax.xml.transform.Source source)
Create a Transformer object that from the input stylesheet Uses the org.apache.xalan.processor.TransformerFactory. |
javax.xml.transform.sax.TransformerHandler |
newTransformerHandler()
Get a TransformerHandler object that can process SAX ContentHandler events based on a copy transformer. |
javax.xml.transform.sax.TransformerHandler |
newTransformerHandler(javax.xml.transform.Source src)
Get a TransformerHandler object that can process SAX ContentHandler events based on a transformer specified by the stylesheet Source. |
javax.xml.transform.sax.TransformerHandler |
newTransformerHandler(javax.xml.transform.Templates templates)
Get a TransformerHandler object that can process SAX ContentHandler events based on a transformer specified by the stylesheet Source. |
org.xml.sax.XMLFilter |
newXMLFilter(javax.xml.transform.Source src)
Create an XMLFilter that uses the given source as the transformation instructions. |
org.xml.sax.XMLFilter |
newXMLFilter(javax.xml.transform.Templates templates)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setErrorListener(javax.xml.transform.ErrorListener listener)
|
void |
setFeature(java.lang.String name,
boolean value)
Set a feature for this SmartTransformerFactory and Transformer s
or Template s created by this factory. |
void |
setURIResolver(javax.xml.transform.URIResolver resolver)
|
Methods inherited from class javax.xml.transform.TransformerFactory |
---|
newInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String CLASS_NAME
Name of class as a constant to use for debugging.
private javax.xml.transform.sax.SAXTransformerFactory _xsltcFactory
private javax.xml.transform.sax.SAXTransformerFactory _xalanFactory
private javax.xml.transform.sax.SAXTransformerFactory _currFactory
private javax.xml.transform.ErrorListener _errorlistener
private javax.xml.transform.URIResolver _uriresolver
private boolean featureSecureProcessing
State of secure processing feature.
Constructor Detail |
---|
public SmartTransformerFactoryImpl()
Method Detail |
---|
private void createXSLTCTransformerFactory()
private void createXalanTransformerFactory()
public void setErrorListener(javax.xml.transform.ErrorListener listener) throws java.lang.IllegalArgumentException
setErrorListener
in class javax.xml.transform.TransformerFactory
java.lang.IllegalArgumentException
public javax.xml.transform.ErrorListener getErrorListener()
getErrorListener
in class javax.xml.transform.TransformerFactory
public java.lang.Object getAttribute(java.lang.String name) throws java.lang.IllegalArgumentException
getAttribute
in class javax.xml.transform.TransformerFactory
java.lang.IllegalArgumentException
public void setAttribute(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
setAttribute
in class javax.xml.transform.TransformerFactory
java.lang.IllegalArgumentException
public void setFeature(java.lang.String name, boolean value) throws javax.xml.transform.TransformerConfigurationException
Set a feature for this SmartTransformerFactory
and Transformer
s
or Template
s created by this factory.
Feature names are fully qualified URI
s.
Implementations may define their own features.
An TransformerConfigurationException
is thrown if this TransformerFactory
or the
Transformer
s or Template
s it creates cannot support the feature.
It is possible for an TransformerFactory
to expose a feature value but be unable to change its state.
See TransformerFactory
for full documentation of specific features.
setFeature
in class javax.xml.transform.TransformerFactory
name
- Feature name.value
- Is feature state true
or false
.
javax.xml.transform.TransformerConfigurationException
- if this TransformerFactory
or the Transformer
s or Template
s it creates cannot support this feature.
java.lang.NullPointerException
- If the name
parameter is null.public boolean getFeature(java.lang.String name)
getFeature
in class javax.xml.transform.TransformerFactory
name
- The feature name
public javax.xml.transform.URIResolver getURIResolver()
getURIResolver
in class javax.xml.transform.TransformerFactory
public void setURIResolver(javax.xml.transform.URIResolver resolver)
setURIResolver
in class javax.xml.transform.TransformerFactory
public javax.xml.transform.Source getAssociatedStylesheet(javax.xml.transform.Source source, java.lang.String media, java.lang.String title, java.lang.String charset) throws javax.xml.transform.TransformerConfigurationException
getAssociatedStylesheet
in class javax.xml.transform.TransformerFactory
javax.xml.transform.TransformerConfigurationException
public javax.xml.transform.Transformer newTransformer() throws javax.xml.transform.TransformerConfigurationException
newTransformer
in class javax.xml.transform.TransformerFactory
javax.xml.transform.TransformerConfigurationException
public javax.xml.transform.Transformer newTransformer(javax.xml.transform.Source source) throws javax.xml.transform.TransformerConfigurationException
newTransformer
in class javax.xml.transform.TransformerFactory
source
- the stylesheet.
javax.xml.transform.TransformerConfigurationException
public javax.xml.transform.Templates newTemplates(javax.xml.transform.Source source) throws javax.xml.transform.TransformerConfigurationException
newTemplates
in class javax.xml.transform.TransformerFactory
source
- the stylesheet.
javax.xml.transform.TransformerConfigurationException
public javax.xml.transform.sax.TemplatesHandler newTemplatesHandler() throws javax.xml.transform.TransformerConfigurationException
newTemplatesHandler
in class javax.xml.transform.sax.SAXTransformerFactory
javax.xml.transform.TransformerConfigurationException
public javax.xml.transform.sax.TransformerHandler newTransformerHandler() throws javax.xml.transform.TransformerConfigurationException
newTransformerHandler
in class javax.xml.transform.sax.SAXTransformerFactory
javax.xml.transform.TransformerConfigurationException
public javax.xml.transform.sax.TransformerHandler newTransformerHandler(javax.xml.transform.Source src) throws javax.xml.transform.TransformerConfigurationException
newTransformerHandler
in class javax.xml.transform.sax.SAXTransformerFactory
javax.xml.transform.TransformerConfigurationException
public javax.xml.transform.sax.TransformerHandler newTransformerHandler(javax.xml.transform.Templates templates) throws javax.xml.transform.TransformerConfigurationException
newTransformerHandler
in class javax.xml.transform.sax.SAXTransformerFactory
javax.xml.transform.TransformerConfigurationException
public org.xml.sax.XMLFilter newXMLFilter(javax.xml.transform.Source src) throws javax.xml.transform.TransformerConfigurationException
newXMLFilter
in class javax.xml.transform.sax.SAXTransformerFactory
javax.xml.transform.TransformerConfigurationException
public org.xml.sax.XMLFilter newXMLFilter(javax.xml.transform.Templates templates) throws javax.xml.transform.TransformerConfigurationException
newXMLFilter
in class javax.xml.transform.sax.SAXTransformerFactory
javax.xml.transform.TransformerConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |