ZlibDecompressor
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 bycompressor
, orNone
ifdecompressor
’sZlibDecompressor
:format property is notGZIP
, 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, orNone
if the header was not yet fully processed, is not present at all, or the compressor’sZlibDecompressor
:format property is notGZIP
.Added in version 2.26.
- props.format: ZlibCompressorFormat
The format of the compressed data.
Added in version 2.24.