Class TextDestination<TInput>

Writes data into a text file. Each line in the output is created by calling the WriteLineFunc or by invoking ToString() on the object.

Inheritance
System.Object
TextDestination<TInput>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.DataFlow.Connectors
Assembly: ETLBox.dll
Syntax
    public class TextDestination<TInput> : DataFlowStreamDestination<TInput>, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowStreamDestination, ILoggableTask, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent
Type Parameters
NameDescription
TInput

Type of ingoing data.

Constructors

TextDestination()

The default ResourceType for a TextDestination is a file.

Declaration
    public TextDestination()

TextDestination(String)

Declaration
    public TextDestination(string filename)
Parameters
TypeNameDescription
System.Stringfilename

Will set the System.Uri to the given file name.

TextDestination(String, Func<TInput, String>)

Declaration
    public TextDestination(string filename, Func<TInput, string> writeLineFunc)
Parameters
TypeNameDescription
System.Stringfilename

Will set the System.Uri to the given file name.

System.Func<TInput, System.String>writeLineFunc

Sets the WriteLineFunc

Properties

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
System.String
Overrides

WriteLineFunc

Defines how each row from the input is written into the file. The input for the Func is an object of the ingoing data type and return a string that is written into the target.

Declaration
    public Func<TInput, string> WriteLineFunc { get; set; }
Property Value
TypeDescription
System.Func<TInput, System.String>

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CheckParameter()

CloseStream()

Declaration
    protected override void CloseStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CloseStream()

InitStream()

Declaration
    protected override void InitStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.InitStream()

WriteIntoStream(TInput)

Declaration
    protected override void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.WriteIntoStream(TInput)

Implements