Skip to main content

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

Declaration
public interface IFileDataReaderFactory

Methods

CreateDataReader(Stream, IDataFormat)

Creates an System.Data.IDataReader based on the provided Workspace.XBR.Xperiflow.Etl.IDataFormat.

Declaration
IDataReader CreateDataReader(Stream stream, IDataFormat dataFormat)
Returns

System.Data.IDataReader

Parameters
TypeNameDescription
System.IO.StreamstreamThe Stream object to provide the IDataReader
Workspace.XBR.Xperiflow.Etl.IDataFormatdataFormatThe Workspace.XBR.Xperiflow.Etl.IDataFormat object to determine the type of System.Data.IDataReader to create

Was this page helpful?