Gio.ZlibDecompressor

g GObject.GInterface GObject.GInterface Gio.Converter Gio.Converter GObject.GInterface->Gio.Converter GObject.Object GObject.Object Gio.ZlibDecompressor Gio.ZlibDecompressor GObject.Object->Gio.ZlibDecompressor Gio.Converter->Gio.ZlibDecompressor

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.Converter (3)

Structs:

GObject.ObjectClass (5)

class

new (format)

get_file_info ()

Virtual Methods

Inherited:

GObject.Object (7), Gio.Converter (2)

Properties

Name

Type

Flags

Short Description

file-info

Gio.FileInfo

r

format

Gio.ZlibCompressorFormat

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gio.ZlibDecompressor(**kwargs)
Bases:

GObject.Object, Gio.Converter

Abstract:

No

Structure:

Gio.ZlibDecompressorClass

GZlibDecompressor is an implementation of [iface`Gio`.Converter] that decompresses data compressed with zlib.

classmethod new(format)[source]
Parameters:

format (Gio.ZlibCompressorFormat) – the format to use for the compressed data

Returns:

a new [class`Gio`.ZlibDecompressor]

Return type:

Gio.ZlibDecompressor

Creates a new decompressor.

New in version 2.24.

get_file_info()[source]
Returns:

file info from the gzip header, if available

Return type:

Gio.FileInfo or None

Gets the [property`Gio`.ZlibDecompressor:file-info] property.

New in version 2.26.

Property Details

Gio.ZlibDecompressor.props.file_info
Name:

file-info

Type:

Gio.FileInfo

Default Value:

None

Flags:

READABLE

A [class`Gio`.FileInfo] containing the information found in the gzip header of the data stream processed.

This will be NULL if the header was not yet fully processed, is not present at all, or the compressor’s [property`Gio`.ZlibDecompressor:format] property is not [enum`Gio`.ZlibCompressorFormat.GZIP].

New in version 2.26.

Gio.ZlibDecompressor.props.format
Name:

format

Type:

Gio.ZlibCompressorFormat

Default Value:

Gio.ZlibCompressorFormat.ZLIB

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The format of the compressed data.

New in version 2.24.