Table of Contents

Method CanRead

Namespace
DocWright.Core.Formats
Assembly
DocWright.Core.dll

CanRead(Stream)

Determines whether the stream appears to contain this reader's format by sniffing its leading bytes. The stream must be seekable; implementations must restore Position before returning.

bool CanRead(Stream stream)

Parameters

stream Stream

The seekable stream to sniff.

Returns

bool

true if the stream looks like this format.