Uses of Class javax.xml.transform.Transformer (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
javax.xml.transform.Transformer

- Packages that use Transformer
  Package | Description
  --- | ---
  javax.xml.transform | This package defines the generic APIs for processing transformation instructions, and performing a transformation from source to result.
  javax.xml.transform.sax | This package implements SAX2-specific transformation APIs.

- - ### Uses of Transformer in javax.xml.transform

    Methods in javax.xml.transform that return Transformer
    Modifier and Type | Method and Description
    --- | ---
    `Transformer` | Templates.`newTransformer()` Create a new transformation context for this Templates object.
    `abstract Transformer` | TransformerFactory.`newTransformer()` Create a new `Transformer` that performs a copy of the `Source` to the `Result`.
    `abstract Transformer` | TransformerFactory.`newTransformer(Source source)` Process the `Source` into a `Transformer` `Object`.

  - ### Uses of Transformer in javax.xml.transform.sax

    Methods in javax.xml.transform.sax that return Transformer
    Modifier and Type | Method and Description
    --- | ---
    `Transformer` | TransformerHandler.`getTransformer()` Get the `Transformer` associated with this handler, which is needed in order to set parameters and output properties.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.