Class FilterObjectStream<S, T>
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
Sthe type of the source/input stream
Tthe 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
samplesIObjectStream<S>
Fields
samples
protected readonly IObjectStream<S> samples
Field Value
Methods
Dispose(bool)
Releases the resources from this object stream.
protected override void Dispose(bool disposing)
Parameters
disposingbool
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