Class FilterObjectStream<S, T>

Namespace
NOpenNLP.Tools.Util
Assembly
NOpenNLP.Tools.dll

Abstract base class for filtering IObjectStream<T>s.

Filtering streams take an existing stream and convert its output to something else.

public abstract class FilterObjectStream<S, T> : ObjectStreamBase<T>, IObjectStream<T>, IDisposable

Type Parameters

S

the type of the source/input stream

T

the type of this stream

Inheritance
FilterObjectStream<S, T>
Implements
Derived
Inherited Members

Constructors

FilterObjectStream(IObjectStream<S>)

Abstract base class for filtering IObjectStream<T>s.

Filtering streams take an existing stream and convert its output to something else.

protected FilterObjectStream(IObjectStream<S> samples)

Parameters

samples IObjectStream<S>

Fields

samples

protected readonly IObjectStream<S> samples

Field Value

IObjectStream<S>

Methods

Dispose(bool)

Releases the resources from this object stream.

protected override void Dispose(bool disposing)

Parameters

disposing bool

Reset()

Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. This method can be used to re-read the stream if multiple passes over the objects are required.

The implementation of this method is optional.

public override void Reset()

Exceptions

IOException

if there is an error during resetting the stream

NotSupportedException

if reset is not supported on this stream