StreamBase

Description

abstract class Tinman.Core.IO.Streams.StreamBase

Derived from

Disposable abstract
IStream

Extended by

DataStreamBase abstract
TextStreamBase abstract

Abstract base class for IStream implementations.

The default implementation of ICanWrite.CanWrite returns the inverted value of IStream.IsFinished.

Protected / Methods

Do​Finish


[EmptyBody]
protected virtual method DoFinish → ()

Finishes writing to this stream.

The IFlushable.Flush method will be called after this method has returned.

IOException

If an I/O error has occurred.

Finish​Log​Error


protected method FinishLogError → ()

Calls IStream.Finish and if neccesary, catches the thrown IOException and outputs it to Logger as an LogVerbosity.Error message.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.