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 (2)

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

File info

format

Gio.ZlibCompressorFormat

r/w/co

The format of the compressed data

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

Gio.ZlibDecompressor is an implementation of 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 Gio.ZlibDecompressor

Return type:

Gio.ZlibDecompressor

Creates a new Gio.ZlibDecompressor.

New in version 2.24.

get_file_info()[source]
Returns:

a Gio.FileInfo, or None

Return type:

Gio.FileInfo or None

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

New in version 2.26.

Property Details

Gio.ZlibDecompressor.props.file_info
Name:

file-info

Type:

Gio.FileInfo

Default Value:

None

Flags:

READABLE

A Gio.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 Gio.ZlibDecompressor :format property is not 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