DecompressGZip Method
Definition
- Assemblies
- Cuemon.IO.dll
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
decoratorIDecorator<Stream>The IDecorator<T> to extend.
setupAction<StreamCopyOptions>The StreamCopyOptions which may be configured.
Returns
Exceptions
- ArgumentNullException
decoratorcannot be null.- ArgumentException
The enclosed Stream of
decoratordoes not support write operations such as compression.- InvalidDataException
The enclosed Stream of
decoratorwas compressed using an unsupported compression method.