Class EventTraceStream

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

Writes each Event read from the underlying stream to a TextWriter before passing it on.

public class EventTraceStream : FilterObjectStream<Event?, Event?>, IObjectStream<Event?>, IDisposable
Inheritance
EventTraceStream
Implements
Inherited Members

Constructors

EventTraceStream(IObjectStream<Event?>, TextWriter)

Writes each Event read from the underlying stream to a TextWriter before passing it on.

public EventTraceStream(IObjectStream<Event?> stream, TextWriter writer)

Parameters

stream IObjectStream<Event>
writer TextWriter

Methods

Read()

Returns the next object. Calling this method repeatedly until it returns null will return each object from the underlying source exactly once.

public override Event? Read()

Returns

Event

the next object or null to signal that the stream is exhausted

Exceptions

IOException

if there is an error during reading