DeflateCompressionProvider Class

Definition

A compression provider that supports compression and decompression using the Deflate algorithm.

public class DeflateCompressionProvider : Microsoft.IdentityModel.Tokens.ICompressionProvider
type DeflateCompressionProvider = class
    interface ICompressionProvider
Public Class DeflateCompressionProvider
Implements ICompressionProvider
Inheritance
DeflateCompressionProvider
Implements

Constructors

DeflateCompressionProvider()

Initializes a new instance of the DeflateCompressionProvider class used to compress and decompress used the Deflate algorithm.

DeflateCompressionProvider(CompressionLevel)

Initializes a new instance of the DeflateCompressionProvider class used to compress and decompress used the Deflate algorithm.

Properties

Algorithm

Gets the compression algorithm.

CompressionLevel

Specifies whether compression should emphasize speed or compression size. Set to Optimal by default.

MaximumDeflateSize

Gets and sets the maximum deflate size in chars that will be processed.

Methods

Compress(Byte[])

Compress the value using the DEFLATE algorithm.

Decompress(Byte[])

Decompress the value using DEFLATE algorithm.

IsSupportedAlgorithm(String)

Answers if a compression algorithm is supported.

Applies to