javax.xml.transform
Class TransformerFactory
java.lang.Object
|
+--javax.xml.transform.TransformerFactory
public abstract class
TransformerFactoryextends
Object Abstract class extended by implementations.
Author:- Andrew Selkirk, David Brownell
TransformerFactory
protected TransformerFactory()
Constructor, for use by subclasses.
getAssociatedStylesheet
public Source getAssociatedStylesheet(javax.xml.transform.Source source, java.lang.String media, java.lang.String title, java.lang.String charset)
Returns an object encapsulating the <?xml-stylesheet ?>
processing instruction from the document that matches the
specified criteria.
Parameters:
getAttribute
public Object getAttribute(java.lang.String name)
Returns an implementation-specific attribute
Parameters:
getErrorListener
public ErrorListener getErrorListener()
Returns the ErrorListener used when parsing stylesheets.
getFeature
public boolean getFeature(java.lang.String name)
Exposes capabilities of the underlying implementation.
Examples include SAXSource.FEATURE and DOMResult.FEATURE.
Parameters:
getURIResolver
public URIResolver getURIResolver()
Returns the URIResolver used when parsing stylesheets.
newInstance
public static TransformerFactory newInstance()
Returns a new TransformerFactory. The name of this class
is found by checking, in order:
the javax.xml.transform.TransformerFactory
system property,
$JAVA_HOME/lib/jaxp.properties for the key with
that same name,
JAR files in the class path with a META-INF/services
file with that same name,
else the compiled-in platform default.
newTemplates
public Templates newTemplates(javax.xml.transform.Source stylesheet)
Returns a pre-compiled stylesheet.
Parameters:
newTransformer
public Transformer newTransformer()
Returns a transformer that performs the null transform.
newTransformer
public Transformer newTransformer(javax.xml.transform.Source stylesheet)
Returns a transformer making a specified transform.
Parameters:
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
Assigns an implementation-specific attribute
Parameters:
setErrorListener
public void setErrorListener(javax.xml.transform.ErrorListener listener)
Assigns the ErrorListener used when parsing stylesheets.
Parameters:
setURIResolver
public void setURIResolver(javax.xml.transform.URIResolver resolver)
Assigns the URIResolver used when parsing stylesheets.
Parameters: