Class TextSource
Reads data from a text file. Each line is read as a string and converted into an object by the ParseLineFunc. A line is defined as a sequence of characters followed by a line feed("\n"), a carriage return ("\r"), or a carriage return immediately followed by a line feed("\r\n").
Inheritance
object
DataFlowSource<ExpandoObject>
DataFlowExecutableSource<ExpandoObject>
DataFlowStreamSource<ExpandoObject>
TextSource<ExpandoObject>
TextSource
Implements
IDataFlowStreamSource<ExpandoObject>
IDataFlowExecutableSource<ExpandoObject>
IDataFlowSource<ExpandoObject>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow.Connectors
Assembly: ETLBox.dll
Syntax
public class TextSource : TextSource<ExpandoObject>, IDataFlowLogging, IDataFlowStreamSource<ExpandoObject>, IDataFlowExecutableSource<ExpandoObject>, IDataFlowExecutableSource, IDataFlowStreamSource, ILoggableTask, IDataFlowSource<ExpandoObject>, IDataFlowSource, IDataFlowComponent
Constructors
TextSource()
Declaration
public TextSource()
TextSource(string, Func<string, int, ExpandoObject>)
Declaration
public TextSource(string uri, Func<string, int, ExpandoObject> parseLineFunc)
Parameters
Type | Name | Description |
---|---|---|
string | uri | |
System.Func<T1, T2, TResult><string, int, ExpandoObject> | parseLineFunc |
TextSource(string)
Declaration
public TextSource(string uri)
Parameters
Type | Name | Description |
---|---|---|
string | uri |