:right-sidebar: True ZlibDecompressor =================================================================== .. currentmodule:: gi.repository.Gio .. class:: ZlibDecompressor(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.Converter` :Constructors: :: ZlibDecompressor(**properties) new(format:Gio.ZlibCompressorFormat) -> Gio.ZlibDecompressor Constructors ------------ .. rst-class:: interim-class .. class:: ZlibDecompressor :no-index: .. classmethod:: new(format: ~gi.repository.Gio.ZlibCompressorFormat) -> ~gi.repository.Gio.ZlibDecompressor Creates a new :obj:`~gi.repository.Gio.ZlibDecompressor`. .. versionadded:: 2.24 :param format: The format to use for the compressed data Methods ------- .. rst-class:: interim-class .. class:: ZlibDecompressor :no-index: .. method:: get_file_info() -> ~gi.repository.Gio.FileInfo | None Retrieves the :obj:`~gi.repository.Gio.FileInfo` constructed from the GZIP header data of compressed data processed by ``compressor``, or :const:`None` if ``decompressor``'s :obj:`~gi.repository.Gio.ZlibDecompressor`:format property is not :const:`~gi.repository.Gio.ZlibCompressorFormat.GZIP`, or the header data was not fully processed yet, or it not present in the data stream at all. .. versionadded:: 2.26 Properties ---------- .. rst-class:: interim-class .. class:: ZlibDecompressor :no-index: .. attribute:: props.file_info :type: ~gi.repository.Gio.FileInfo A :obj:`~gi.repository.Gio.FileInfo` containing the information found in the GZIP header of the data stream processed, or :const:`None` if the header was not yet fully processed, is not present at all, or the compressor's :obj:`~gi.repository.Gio.ZlibDecompressor`:format property is not :const:`~gi.repository.Gio.ZlibCompressorFormat.GZIP`. .. versionadded:: 2.26 .. attribute:: props.format :type: ~gi.repository.Gio.ZlibCompressorFormat The format of the compressed data. .. versionadded:: 2.24