共用方式為


Transformer.Reset Method

Definition

Reset this Transformer to its original configuration.

[Android.Runtime.Register("reset", "()V", "GetResetHandler")]
public virtual void Reset ();
[<Android.Runtime.Register("reset", "()V", "GetResetHandler")>]
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
Attributes

Remarks

Reset this Transformer to its original configuration.

Transformer is reset to the same state as when it was created with TransformerFactory#newTransformer(), TransformerFactory#newTransformer(Source source) or Templates#newTransformer(). reset() is designed to allow the reuse of existing Transformers thus saving resources associated with the creation of new Transformers.

The reset Transformer is not guaranteed to have the same URIResolver or ErrorListenerObjects, e.g. Object#equals(Object obj). It is guaranteed to have a functionally equal URIResolver and ErrorListener.

Added in 1.5.

Java documentation for javax.xml.transform.Transformer.reset().

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