Opens the reader on the specified stream.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic

Protected Friend MustOverride Sub OpenReader ( _
	stream As Stream _
)

C#

protected internal abstract void OpenReader(
	Stream stream
)

Parameters

stream

Type: System.IO..::.Stream

Stream to open the reader on.

Examples

C#

protected override void OpenReader(System.IO.Stream stream)
{
    _stream = stream;

    try
    {
        //Initialize the reader using a custom helper method
        //NOTE: this method is not a part of the CustomFormatReader class, and you
        //have to add it yourself
        InitializeReader();            
    }
    catch
    {
        CloseReader();
        throw;
    }
}