|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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
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.
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,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
|
java.lang.Object |
getAttribute(java.lang.String name)
|
ErrorListener |
getErrorListener()
|
boolean |
getFeature(java.lang.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(java.lang.String name,
java.lang.Object value)
|
void |
setErrorListener(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(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 java.lang.IllegalArgumentException
public ErrorListener getErrorListener()
public java.lang.Object getAttribute(java.lang.String name) throws java.lang.IllegalArgumentException
public void setAttribute(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
public void setFeature(java.lang.String name, boolean value) throws TransformerConfigurationException
Set a feature for this SmartTransformerFactory
and Transformer
s
or Template
s created by this factory.
Feature names are fully qualified java.net.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.
name
- Feature name.value
- Is feature state true
or false
.TransformerFactory
or the Transformer
s or Template
s it creates cannot support this feature.name
parameter is null.public boolean getFeature(java.lang.String name)
name
- The feature namepublic URIResolver getURIResolver()
public void setURIResolver(URIResolver resolver)
public Source getAssociatedStylesheet(Source source, java.lang.String media, java.lang.String title, java.lang.String charset) throws TransformerConfigurationException
public Transformer newTransformer() throws TransformerConfigurationException
public Transformer newTransformer(Source source) throws TransformerConfigurationException
source
- the stylesheet.public Templates newTemplates(Source source) throws TransformerConfigurationException
source
- the stylesheet.public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException
public TransformerHandler newTransformerHandler() throws TransformerConfigurationException
public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException
public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException
public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException
public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |