Transformer

public abstract class Transformer extends Object

An instance of this abstract class can transform a source tree into a result tree.

An instance of this class can be obtained with the TransformerFactory.newTransformer method. This instance may then be used to process XML from a variety of sources and write the transformation output to a variety of sinks.

An object of this class may not be used in multiple threads running concurrently. Different Transformers may be used concurrently by different threads.

A Transformer may be used multiple times. Parameters and output properties are preserved across transformations.

Protected Constructor Summary

Transformer()
Default constructor is protected on purpose.

Public Method Summary

abstract void
clearParameters()
Clear all parameters set with setParameter.
abstract ErrorListener
getErrorListener()
Get the error event handler in effect for the transformation.
abstract Properties
getOutputProperties()

Get a copy of the output properties for the transformation.

abstract String
getOutputProperty(String name)
Get an output property that is in effect for the transformer.
abstract Object
getParameter(String name)
Get a parameter that was explicitly set with setParameter.
abstract URIResolver
getURIResolver()
Get an object that will be used to resolve URIs used in document().
void
reset()

Reset this Transformer to its original configuration.

abstract void