Skip to main content

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

Derived: Workspace.XBR.Xperiflow.Etl.Tabular.FileDataWriterFactory

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
TypeNameDescription
System.IO.StreamstreamThe Stream object to provide the IDataWriter
Workspace.XBR.Xperiflow.Etl.IDataFormatdataFormatThe Workspace.XBR.Xperiflow.Etl.IDataFormat object to determine the type of Workspace.XBR.Xperiflow.Etl.Tabular.IDataWriter to create

Was this page helpful?