Table of Contents

Class StreamFactory

Namespace
Cuemon.IO
Assembly
Cuemon.IO.dll

Provides access to factory methods for creating System.IO.Stream instances.

public static class StreamFactory
Inheritance
Object
StreamFactory

Methods

Create(Action<IBufferWriter<Byte>>, Action<BufferWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create(Action<IBufferWriter<byte>> writer, Action<BufferWriterOptions> setup = null)

Parameters

writer Action<IBufferWriter<Byte>>

The delegate that will create an in-memory System.IO.Stream.

setup Action<BufferWriterOptions>

The BufferWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Create(Action<StreamWriter>, Action<StreamWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create(Action<StreamWriter> writer, Action<StreamWriterOptions> setup = null)

Parameters

writer Action<StreamWriter>

The delegate that will create an in-memory System.IO.Stream.

setup Action<StreamWriterOptions>

The StreamWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Create<T>(Action<IBufferWriter<Byte>, T>, T, Action<BufferWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T>(Action<IBufferWriter<byte>, T> writer, T arg, Action<BufferWriterOptions> setup = null)

Parameters

writer Action<IBufferWriter<Byte>, T>

The delegate that will create an in-memory System.IO.Stream.

arg T

The parameter of the delegate writer.

setup Action<BufferWriterOptions>

The BufferWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T

The type of the parameter of the delegate writer.

Create<T>(Action<StreamWriter, T>, T, Action<StreamWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T>(Action<StreamWriter, T> writer, T arg, Action<StreamWriterOptions> setup = null)

Parameters

writer Action<StreamWriter, T>

The delegate that will create an in-memory System.IO.Stream.

arg T

The parameter of the delegate writer.

setup Action<StreamWriterOptions>

The StreamWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T

The type of the parameter of the delegate writer.

Create<T1, T2>(Action<IBufferWriter<Byte>, T1, T2>, T1, T2, Action<BufferWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2>(Action<IBufferWriter<byte>, T1, T2> writer, T1 arg1, T2 arg2, Action<BufferWriterOptions> setup = null)

Parameters

writer Action<IBufferWriter<Byte>, T1, T2>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

setup Action<BufferWriterOptions>

The BufferWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

Create<T1, T2>(Action<StreamWriter, T1, T2>, T1, T2, Action<StreamWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2>(Action<StreamWriter, T1, T2> writer, T1 arg1, T2 arg2, Action<StreamWriterOptions> setup = null)

Parameters

writer Action<StreamWriter, T1, T2>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

setup Action<StreamWriterOptions>

The StreamWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

Create<T1, T2, T3>(Action<IBufferWriter<Byte>, T1, T2, T3>, T1, T2, T3, Action<BufferWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2, T3>(Action<IBufferWriter<byte>, T1, T2, T3> writer, T1 arg1, T2 arg2, T3 arg3, Action<BufferWriterOptions> setup = null)

Parameters

writer Action<IBufferWriter<Byte>, T1, T2, T3>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

arg3 T3

The third parameter of the delegate writer.

setup Action<BufferWriterOptions>

The BufferWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

T3

The type of the third parameter of the delegate writer.

Create<T1, T2, T3>(Action<StreamWriter, T1, T2, T3>, T1, T2, T3, Action<StreamWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2, T3>(Action<StreamWriter, T1, T2, T3> writer, T1 arg1, T2 arg2, T3 arg3, Action<StreamWriterOptions> setup = null)

Parameters

writer Action<StreamWriter, T1, T2, T3>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

arg3 T3

The third parameter of the delegate writer.

setup Action<StreamWriterOptions>

The StreamWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

T3

The type of the third parameter of the delegate writer.

Create<T1, T2, T3, T4>(Action<IBufferWriter<Byte>, T1, T2, T3, T4>, T1, T2, T3, T4, Action<BufferWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2, T3, T4>(Action<IBufferWriter<byte>, T1, T2, T3, T4> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<BufferWriterOptions> setup = null)

Parameters

writer Action<IBufferWriter<Byte>, T1, T2, T3, T4>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

arg3 T3

The third parameter of the delegate writer.

arg4 T4

The fourth parameter of the delegate writer.

setup Action<BufferWriterOptions>

The BufferWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

T3

The type of the third parameter of the delegate writer.

T4

The type of the fourth parameter of the delegate writer.

Create<T1, T2, T3, T4>(Action<StreamWriter, T1, T2, T3, T4>, T1, T2, T3, T4, Action<StreamWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2, T3, T4>(Action<StreamWriter, T1, T2, T3, T4> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<StreamWriterOptions> setup = null)

Parameters

writer Action<StreamWriter, T1, T2, T3, T4>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

arg3 T3

The third parameter of the delegate writer.

arg4 T4

The fourth parameter of the delegate writer.

setup Action<StreamWriterOptions>

The StreamWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

T3

The type of the third parameter of the delegate writer.

T4

The type of the fourth parameter of the delegate writer.

Create<T1, T2, T3, T4, T5>(Action<IBufferWriter<Byte>, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5, Action<BufferWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2, T3, T4, T5>(Action<IBufferWriter<byte>, T1, T2, T3, T4, T5> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<BufferWriterOptions> setup = null)

Parameters

writer Action<IBufferWriter<Byte>, T1, T2, T3, T4, T5>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

arg3 T3

The third parameter of the delegate writer.

arg4 T4

The fourth parameter of the delegate writer.

arg5 T5

The fifth parameter of the delegate writer.

setup Action<BufferWriterOptions>

The BufferWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

T3

The type of the third parameter of the delegate writer.

T4

The type of the fourth parameter of the delegate writer.

T5

The type of the fifth parameter of the delegate writer.

Create<T1, T2, T3, T4, T5>(Action<StreamWriter, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5, Action<StreamWriterOptions>)

Creates and returns a System.IO.Stream by the specified delegate writer.

public static Stream Create<T1, T2, T3, T4, T5>(Action<StreamWriter, T1, T2, T3, T4, T5> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<StreamWriterOptions> setup = null)

Parameters

writer Action<StreamWriter, T1, T2, T3, T4, T5>

The delegate that will create an in-memory System.IO.Stream.

arg1 T1

The first parameter of the delegate writer.

arg2 T2

The second parameter of the delegate writer.

arg3 T3

The third parameter of the delegate writer.

arg4 T4

The fourth parameter of the delegate writer.

arg5 T5

The fifth parameter of the delegate writer.

setup Action<StreamWriterOptions>

The StreamWriterOptions which may be configured.

Returns

Stream

A System.IO.Stream holding the content created by the delegate writer.

Type Parameters

T1

The type of the first parameter of the delegate writer.

T2

The type of the second parameter of the delegate writer.

T3

The type of the third parameter of the delegate writer.

T4

The type of the fourth parameter of the delegate writer.

T5

The type of the fifth parameter of the delegate writer.