StreamExtensions ClassDocument Toolkit Help
Provides extension methods for the Stream class
Inheritance Hierarchy

SystemObject
  FirstFloor.Documents.IOStreamExtensions

Namespace: FirstFloor.Documents.IO
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

public static class StreamExtensions

The StreamExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberIsMatch
Determines whether the stream matches specified data.
Public methodStatic memberMatch
Raises an exception if the stream data doesn't match specified data.
Public methodStatic memberPeekByte
Reads a byte from the stream without consuming it.
Public methodStatic memberReadBytes
Reads a byte array from given stream.
Public methodStatic memberToMemoryStream(Stream)
Copies the entire contents of specified stream to a new memory stream.
Public methodStatic memberToMemoryStream(Stream, Int32)
Copies the entire contents of specified stream to a new memory stream.
Public methodStatic memberVerifyRead
Verifies whether the specified stream is not null and readable.
Public methodStatic memberVerifyReadAndSeek
Verifies whether the specified stream is not null, readable and seekable.
Public methodStatic memberVerifyWrite
Verifies whether the specified stream is not null and writable.
Public methodStatic memberVerifyWriteAndSeek
Verifies whether the specified stream is not null, writable and seekable.
Top
See Also

Reference