Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.xml.transform

Class TransformerFactory

java.lang.Object
|
+--javax.xml.transform.TransformerFactory


public abstract class TransformerFactory

extends Object

Abstract class extended by implementations.

Author:

Constructor Summary

TransformerFactory()

Constructor, for use by subclasses.

Method Summary

javax.xml.transform.SourcegetAssociatedStylesheet(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.
java.lang.ObjectgetAttribute(java.lang.String name)

Returns an implementation-specific attribute
javax.xml.transform.ErrorListenergetErrorListener()

Returns the ErrorListener used when parsing stylesheets.
booleangetFeature(java.lang.String name)

Exposes capabilities of the underlying implementation.
javax.xml.transform.URIResolvergetURIResolver()

Returns the URIResolver used when parsing stylesheets.
static javax.xml.transform.TransformerFactorynewInstance()

Returns a new TransformerFactory.
javax.xml.transform.TemplatesnewTemplates(javax.xml.transform.Source stylesheet)

Returns a pre-compiled stylesheet.
javax.xml.transform.TransformernewTransformer()

Returns a transformer that performs the null transform.
javax.xml.transform.TransformernewTransformer(javax.xml.transform.Source stylesheet)

Returns a transformer making a specified transform.
voidsetAttribute(java.lang.String name, java.lang.Object value)

Assigns an implementation-specific attribute
voidsetErrorListener(javax.xml.transform.ErrorListener listener)

Assigns the ErrorListener used when parsing stylesheets.
voidsetURIResolver(javax.xml.transform.URIResolver resolver)

Assigns the URIResolver used when parsing stylesheets.

Constructor Details

TransformerFactory

protected TransformerFactory()

Constructor, for use by subclasses.


Method Details

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: