Table of Contents

DecompressGZip Method

Definition

Namespace
Cuemon.IO
Assemblies
Cuemon.IO.dll
Source
src/Cuemon.IO/Extensions/StreamDecoratorExtensions.cs

DecompressGZip(IDecorator<Stream>, Action<StreamCopyOptions>)

Decompress the enclosed Stream of the specified decorator using GZip data format specification.

public static Stream DecompressGZip(this IDecorator<Stream> decorator, Action<StreamCopyOptions> setup = null)

Parameters

decorator IDecorator<Stream>

The IDecorator<T> to extend.

setup Action<StreamCopyOptions>

The StreamCopyOptions which may be configured.

Returns

Stream

A decompressed version of the enclosed Stream of the specified decorator.

Exceptions

ArgumentNullException

decorator cannot be null.

ArgumentException

The enclosed Stream of decorator does not support write operations such as compression.

InvalidDataException

The enclosed Stream of decorator was compressed using an unsupported compression method.