Interface IFileDataReaderFactory
Defines a contract for a factory that creates an System.Data.IDataReader
based on the provided Workspace.XBR.Xperiflow.Etl.IDataFormat.
The FileDataReaderFactory
class is used to provide a factory method to instantiate an IDataReader
based on the provided [Workspace.XBR.Xperiflow.Etl.IDataFormat](../Xperiflow.Etl/IDataFormat.md)
.
You can get an IDataReader instance when you have an IFileDataReaderFactory like so:
IDataFormat dataFormat = new CsvDataFormat(); IFileDataReaderFactory factory = new FileDataReaderFactory(); var reader = factory.CreateDataReader(stream, dataFormat);
Namespace: Workspace.XBR.Xperiflow.Etl.Tabular
Assembly: Xperiflow.dll
public interface IFileDataReaderFactory
Methods
CreateDataReader(Stream, IDataFormat)
Creates an System.Data.IDataReader
based on the provided Workspace.XBR.Xperiflow.Etl.IDataFormat.
IDataReader CreateDataReader(Stream stream, IDataFormat dataFormat)
Returns
System.Data.IDataReader
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The Stream object to provide the IDataReader |
Workspace.XBR.Xperiflow.Etl.IDataFormat | dataFormat | The Workspace.XBR.Xperiflow.Etl.IDataFormat object to determine the type of System.Data.IDataReader to create |