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

Class TransformerFactory

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

Known Direct Subclasses:
SAXTransformerFactory


public abstract class TransformerFactory
extends java.lang.Object

Abstract class extended by implementations.
Author:
Andrew Selkirk, David Brownell

Constructor Summary

TransformerFactory()

Constructor, for use by subclasses.

Method Summary

Source

getAssociatedStylesheet(Source source, java.lang.String media, java.lang.String title, java.lang.String charset)

Returns an object encapsulating the processing instruction from the document that matches the specified criteria.

java.lang.Object

getAttribute(java.lang.String name)

Returns an implementation-specific attribute

ErrorListener

getErrorListener()

Returns the ErrorListener used when parsing stylesheets.

boolean

getFeature(java.lang.String name)

Exposes capabilities of the underlying implementation.

URIResolver

getURIResolver()

Returns the URIResolver used when parsing stylesheets.

static TransformerFactory

newInstance()

Returns a new TransformerFactory.

Templates

newTemplates(Source stylesheet)

Returns a pre-compiled stylesheet.

Transformer

newTransformer()

Returns a transformer that performs the null transform.

Transformer

newTransformer(Source stylesheet)

Returns a transformer making a specified transform.

void

setAttribute(java.lang.String name, java.lang.Object value)

Assigns an implementation-specific attribute

void

setErrorListener(ErrorListener listener)

Assigns the ErrorListener used when parsing stylesheets.

void

setURIResolver(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(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:
source
media
title
charset

getAttribute

public Object getAttribute(java.lang.String name)

Returns an implementation-specific attribute

Parameters:
name

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:
name

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(Source stylesheet)

Returns a pre-compiled stylesheet.

Parameters:
stylesheet - XSLT stylesheet specifying transform

newTransformer

public Transformer newTransformer()

Returns a transformer that performs the null transform.


newTransformer

public Transformer newTransformer(Source stylesheet)

Returns a transformer making a specified transform.

Parameters:
stylesheet - XSLT stylesheet specifying transform

setAttribute

public void setAttribute(java.lang.String name, java.lang.Object value)

Assigns an implementation-specific attribute

Parameters:
name
value

setErrorListener

public void setErrorListener(ErrorListener listener)

Assigns the ErrorListener used when parsing stylesheets.

Parameters:
listener

setURIResolver

public void setURIResolver(URIResolver resolver)

Assigns the URIResolver used when parsing stylesheets.

Parameters:
resolver