IdentityTransformer Class

Namespace
Kampute.DocToolkit.Formatters
Assembly
  • Kampute.DocToolkit.dll

Definition

Represents a format transformer that does not perform any transformation.
public sealed class IdentityTransformer : ITextTransformer
Inheritance
Implements

Remarks

The IdentityTransformer class is a simple pass-through transformer that copies content without modifying it. This is useful as a default transformer when no specific transformation is needed between file formats, or when the input format is already compatible with the target format.

The class is designed as a singleton, so use the Instance property to access the shared instance rather than creating new instances.

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Properties

InstanceGets the singleton instance of the IdentityTransformer class.

Methods

Transform(TextReader, TextWriter, IUrlTransformer)Copies the content from the source TextReader to the target TextWriter without any transformation.