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
System.Object
DataFlowSource<System.Dynamic.ExpandoObject>
DataFlowExecutableSource<System.Dynamic.ExpandoObject>
DataFlowStreamSource<System.Dynamic.ExpandoObject>
TextSource<System.Dynamic.ExpandoObject>
TextSource
Implements
IDataFlowStreamSource<System.Dynamic.ExpandoObject>
IDataFlowExecutableSource<System.Dynamic.ExpandoObject>
IDataFlowSource<System.Dynamic.ExpandoObject>
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 TextSource : TextSource<ExpandoObject>, IDataFlowLogging, IDataFlowStreamSource<ExpandoObject>, IDataFlowExecutableSource<ExpandoObject>, IDataFlowExecutableSource, IDataFlowStreamSource, ILoggableTask, IDataFlowSource<ExpandoObject>, IDataFlowSource, IDataFlowComponent
Constructors
TextSource()
Declaration
public TextSource()
TextSource(String)
Declaration
public TextSource(string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri |
TextSource(String, Func<String, Int32, ExpandoObject>)
Declaration
public TextSource(string uri, Func<string, int, ExpandoObject> parseLineFunc)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | |
System.Func<System.String, System.Int32, System.Dynamic.ExpandoObject> | parseLineFunc |