次の方法で共有


TransformerFactory.NewTransformer Method

Definition

Overloads

NewTransformer()

Create a new Transformer that performs a copy of the Source to the Result.

NewTransformer(ISource)

Process the Source into a TransformerObject.

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.

Java documentation for javax.xml.transform.TransformerFactory.newTransformer(javax.xml.transform.Source).

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