|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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 |
|---|
| Fields inherited from class javax.xml.transform.sax.SAXTransformerFactory |
|---|
FEATURE, FEATURE_XMLFILTER |
| Constructor Summary | |
|---|---|
SmartTransformerFactoryImpl()
implementation of the SmartTransformerFactory. |
|
| Method Summary | |
|---|---|
Source |
getAssociatedStylesheet(Source source,
String media,
String title,
String charset)
|
Object |
getAttribute(String name)
|
ErrorListener |
getErrorListener()
|
boolean |
getFeature(String name)
javax.xml.transform.sax.TransformerFactory implementation. |
URIResolver |
getURIResolver()
|
Templates |
newTemplates(Source source)
Create a Templates object that from the input stylesheet Uses the org.apache.xalan.xsltc.trax.TransformerFactory. |
TemplatesHandler |
newTemplatesHandler()
Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object. |
Transformer |
newTransformer()
Create a Transformer object that copies the input document to the result. |
Transformer |
newTransformer(Source source)
Create a Transformer object that from the input stylesheet Uses the org.apache.xalan.processor.TransformerFactory. |
TransformerHandler |
newTransformerHandler()
Get a TransformerHandler object that can process SAX ContentHandler events based on a copy transformer. |
TransformerHandler |
newTransformerHandler(Source src)
Get a TransformerHandler object that can process SAX ContentHandler events based on a transformer specified by the stylesheet Source. |
TransformerHandler |
newTransformerHandler(Templates templates)
Get a TransformerHandler object that can process SAX ContentHandler events based on a transformer specified by the stylesheet Source. |
XMLFilter |
newXMLFilter(Source src)
Create an XMLFilter that uses the given source as the transformation instructions. |
XMLFilter |
newXMLFilter(Templates templates)
|
void |
setAttribute(String name,
Object value)
|
void |
setErrorListener(ErrorListener listener)
|
void |
setFeature(String name,
boolean value)
Set a feature for this SmartTransformerFactory and Transformers
or Templates created by this factory. |
void |
setURIResolver(URIResolver resolver)
|
| Methods inherited from class javax.xml.transform.TransformerFactory |
|---|
newInstance |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmartTransformerFactoryImpl()
| Method Detail |
|---|
public void setErrorListener(ErrorListener listener)
throws IllegalArgumentException
setErrorListener in class TransformerFactoryIllegalArgumentExceptionpublic ErrorListener getErrorListener()
getErrorListener in class TransformerFactory
public Object getAttribute(String name)
throws IllegalArgumentException
getAttribute in class TransformerFactoryIllegalArgumentException
public void setAttribute(String name,
Object value)
throws IllegalArgumentException
setAttribute in class TransformerFactoryIllegalArgumentException
public void setFeature(String name,
boolean value)
throws TransformerConfigurationException
Set a feature for this SmartTransformerFactory and Transformers
or Templates created by this factory.
Feature names are fully qualified URIs.
Implementations may define their own features.
An TransformerConfigurationException is thrown if this TransformerFactory or the
Transformers or Templates 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 TransformerFactoryname - Feature name.value - Is feature state true or false.
TransformerConfigurationException - if this TransformerFactory
or the Transformers or Templates it creates cannot support this feature.
NullPointerException - If the name parameter is null.public boolean getFeature(String name)
getFeature in class TransformerFactoryname - The feature name
public URIResolver getURIResolver()
getURIResolver in class TransformerFactorypublic void setURIResolver(URIResolver resolver)
setURIResolver in class TransformerFactory
public Source getAssociatedStylesheet(Source source,
String media,
String title,
String charset)
throws TransformerConfigurationException
getAssociatedStylesheet in class TransformerFactoryTransformerConfigurationException
public Transformer newTransformer()
throws TransformerConfigurationException
newTransformer in class TransformerFactoryTransformerConfigurationException
public Transformer newTransformer(Source source)
throws TransformerConfigurationException
newTransformer in class TransformerFactorysource - the stylesheet.
TransformerConfigurationException
public Templates newTemplates(Source source)
throws TransformerConfigurationException
newTemplates in class TransformerFactorysource - the stylesheet.
TransformerConfigurationException
public TemplatesHandler newTemplatesHandler()
throws TransformerConfigurationException
newTemplatesHandler in class SAXTransformerFactoryTransformerConfigurationException
public TransformerHandler newTransformerHandler()
throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactoryTransformerConfigurationException
public TransformerHandler newTransformerHandler(Source src)
throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactoryTransformerConfigurationException
public TransformerHandler newTransformerHandler(Templates templates)
throws TransformerConfigurationException
newTransformerHandler in class SAXTransformerFactoryTransformerConfigurationException
public XMLFilter newXMLFilter(Source src)
throws TransformerConfigurationException
newXMLFilter in class SAXTransformerFactoryTransformerConfigurationException
public XMLFilter newXMLFilter(Templates templates)
throws TransformerConfigurationException
newXMLFilter in class SAXTransformerFactoryTransformerConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||