GMime.FilterGZip

g GMime.Filter GMime.Filter GMime.FilterGZip GMime.FilterGZip GMime.Filter->GMime.FilterGZip GObject.Object GObject.Object GObject.Object->GMime.Filter

Subclasses:

None

Methods

Inherited:

GMime.Filter (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (mode, level)

get_comment ()

get_filename ()

set_comment (comment)

set_filename (filename)

Virtual Methods

Inherited:

GMime.Filter (4), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

level

int

r

compression level

mode

GMime.FilterGZipMode

r

GMime.FilterGZipMode

parent_object

GMime.Filter

r

parent GMime.Filter

priv

object

r

private state data

Class Details

class GMime.FilterGZip(**kwargs)
Bases:

GMime.Filter

Abstract:

No

Structure:

GMime.FilterGZipClass

A filter for compresing or decompressing a gzip stream.

classmethod new(mode, level)
Parameters:
Returns:

a new gzip (or gunzip) filter.

Return type:

GMime.Filter

Creates a new gzip (or gunzip) filter.

get_comment()
Returns:

a string containing the comment.

Return type:

str

Gets the comment that was either previously set or retrieved when decoding a gzip stream.

New in version 3.2.

get_filename()
Returns:

a string containing th ename of the file.

Return type:

str

Gets the filename that was either previously set or retrieved when decoding a gzip stream.

New in version 3.2.

set_comment(comment)
Parameters:

comment (str) – The comment

Sets the comment that should be used when generating the gzip header.

New in version 3.2.

set_filename(filename)
Parameters:

filename (str) – The name of the file

Sets the filename that should be used when generating the gzip header.

New in version 3.2.