TransformerFactory.NewTemplates(ISource) Method

Definition

Process the Source into a Templates object, which is a a compiled representation of the source.

[Android.Runtime.Register("newTemplates", "(Ljavax/xml/transform/Source;)Ljavax/xml/transform/Templates;", "GetNewTemplates_Ljavax_xml_transform_Source_Handler")]
public abstract Javax.Xml.Transform.ITemplates? NewTemplates (Javax.Xml.Transform.ISource? source);
[<Android.Runtime.Register("newTemplates", "(Ljavax/xml/transform/Source;)Ljavax/xml/transform/Templates;", "GetNewTemplates_Ljavax_xml_transform_Source_Handler")>]
abstract member NewTemplates : Javax.Xml.Transform.ISource -> Javax.Xml.Transform.ITemplates

Parameters

source
ISource

An object that holds a URL, input stream, etc.

Returns

A Templates object capable of being used for transformation purposes, never null.

Attributes

Exceptions

May throw this during the parse when it is constructing the Templates object and fails.

Remarks

Process the Source into a Templates object, which is a a compiled representation of the source. This Templates object may then be used concurrently across multiple threads. Creating a Templates object allows the TransformerFactory to do detailed performance optimization of transformation instructions, without penalizing runtime transformation.

Java documentation for javax.xml.transform.TransformerFactory.newTemplates(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