Class ObjectStreamUtils

Namespace
NOpenNLP.Tools.Util
Assembly
NOpenNLP.Tools.dll
public class ObjectStreamUtils
Inheritance
ObjectStreamUtils
Inherited Members

Methods

ConcatenateObjectStream<T>(params IObjectStream<T?>[])

Creates a single concatenated IObjectStream<T> from multiple individual IObjectStream<T>s with the same type.

public static IObjectStream<T?> ConcatenateObjectStream<T>(params IObjectStream<T?>[] streams) where T : class

Parameters

streams IObjectStream<T>[]

Returns

IObjectStream<T>

Type Parameters

T

CreateObjectStream<T>(params T[])

Creates an IObjectStream<T> from an array.

public static IObjectStream<T?> CreateObjectStream<T>(params T[] array) where T : class

Parameters

array T[]

the array to stream over

Returns

IObjectStream<T>

the object stream over the array elements

Type Parameters

T