TransformerFactory.NewTransformer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| NewTransformer() |
Create a new |
| NewTransformer(ISource) |
Process the |
NewTransformer()
Create a new Transformer that performs a copy
of the Source to the Result.
[Android.Runtime.Register("newTransformer", "()Ljavax/xml/transform/Transformer;", "GetNewTransformerHandler")]
public abstract Javax.Xml.Transform.Transformer? NewTransformer();
[<Android.Runtime.Register("newTransformer", "()Ljavax/xml/transform/Transformer;", "GetNewTransformerHandler")>]
abstract member NewTransformer : unit -> Javax.Xml.Transform.Transformer
Returns
A Transformer object that may be used to perform a transformation in a single thread, never null.
- Attributes
Exceptions
Thrown if it is not
possible to create a Transformer instance.
Remarks
Create a new Transformer that performs a copy of the Source to the Result. i.e. the "<em>identity transform</em>".
Java documentation for javax.xml.transform.TransformerFactory.newTransformer().
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
NewTransformer(ISource)
Process the Source into a TransformerObject.
[Android.Runtime.Register("newTransformer", "(Ljavax/xml/transform/Source;)Ljavax/xml/transform/Transformer;", "GetNewTransformer_Ljavax_xml_transform_Source_Handler")]
public abstract Javax.Xml.Transform.Transformer? NewTransformer(Javax.Xml.Transform.ISource? source);
[<Android.Runtime.Register("newTransformer", "(Ljavax/xml/transform/Source;)Ljavax/xml/transform/Transformer;", "GetNewTransformer_Ljavax_xml_transform_Source_Handler")>]
abstract member NewTransformer : Javax.Xml.Transform.ISource -> Javax.Xml.Transform.Transformer
Parameters
- source
- ISource
Source of XSLT document used to create
Transformer.
Examples of XML Sources include
javax.xml.transform.stream.StreamSource StreamSource,
javax.xml.transform.sax.SAXSource SAXSource and
javax.xml.transform.dom.DOMSource DOMSource.
Returns
A Transformer object that may be used to perform
a transformation in a single Thread, never
null.
- Attributes
Exceptions
Thrown if there are errors when
parsing the Source or it is not possible to create a
Transformer instance.
Remarks
Process the Source into a TransformerObject. The Source is an XSLT document that conforms to XSL Transformations (XSLT) Version 1.0. Care must be taken not to use this Transformer in multiple Threads running concurrently. Different TransformerFactories can be used concurrently by different Threads.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.