Interface IFileDataWriterFactory
Defines a contract for a factory that creates an Workspace.XBR.Xperiflow.Etl.Tabular.IDataWriter based on the provided Workspace.XBR.Xperiflow.Etl.IDataFormat.
You can get an IDataWriter instance when you have an IFileDataWriterFactory like so:
IDataFormat dataFormat = new CsvDataFormat(); IFileDataWriterFactory factory = new FileDataWriterFactory(); var writer = factory.CreateDataWriter(stream, dataFormat);
Namespace: Workspace.XBR.Xperiflow.Etl.Tabular
Assembly: Xperiflow.dll
Declaration
public interface IFileDataWriterFactory
Methods
CreateDataWriter(Stream, IDataFormat)
Creates an Workspace.XBR.Xperiflow.Etl.Tabular.IDataWriter based on the provided Workspace.XBR.Xperiflow.Etl.IDataFormat.
Declaration
IDataWriter CreateDataWriter(Stream stream, IDataFormat dataFormat)
Returns
Workspace.XBR.Xperiflow.Etl.Tabular.IDataWriter
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The Stream object to provide the IDataWriter |
Workspace.XBR.Xperiflow.Etl.IDataFormat | dataFormat | The Workspace.XBR.Xperiflow.Etl.IDataFormat object to determine the type of Workspace.XBR.Xperiflow.Etl.Tabular.IDataWriter to create |