ZlibDecompressor

class ZlibDecompressor(**properties: Any)

Superclasses: Object

Implemented Interfaces: Converter

GZlibDecompressor is an implementation of Converter that decompresses data compressed with zlib.

Constructors

class ZlibDecompressor
classmethod new(format: ZlibCompressorFormat) ZlibDecompressor

Creates a new ZlibDecompressor.

Added in version 2.24.

Parameters:

format – The format to use for the compressed data

Methods

class ZlibDecompressor
get_file_info() FileInfo | None

Retrieves the FileInfo constructed from the GZIP header data of compressed data processed by compressor, or None if decompressor’s ZlibDecompressor:format property is not GZIP, or the header data was not fully processed yet, or it not present in the data stream at all.

Added in version 2.26.

Properties

class ZlibDecompressor
props.file_info: FileInfo

A FileInfo containing the information found in the GZIP header of the data stream processed, or None if the header was not yet fully processed, is not present at all, or the compressor’s ZlibDecompressor:format property is not GZIP.

Added in version 2.26.

props.format: ZlibCompressorFormat

The format of the compressed data.

Added in version 2.24.