Gio.ZlibCompressor¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gio.ZlibCompressor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GZlibCompressoris an implementation of [iface`Gio`.Converter] that compresses data using zlib.- classmethod new(format, level)[source]¶
- Parameters:
format (
Gio.ZlibCompressorFormat) – The format to use for the compressed datalevel (
int) – compression level (0-9), -1 for default
- Returns:
a new
Gio.ZlibCompressor- Return type:
Creates a new
Gio.ZlibCompressor.New in version 2.24.
- get_file_info()[source]¶
- Returns:
a
Gio.FileInfo, orNone- Return type:
Gio.FileInfoorNone
Returns the
Gio.ZlibCompressor:file-infoproperty.New in version 2.26.
- set_file_info(file_info)[source]¶
- Parameters:
file_info (
Gio.FileInfoorNone) – aGio.FileInfo
Sets file_info in self. If non-
None, and self'sGio.ZlibCompressor:formatproperty isGio.ZlibCompressorFormat.GZIP, it will be used to set the file name and modification time in the GZIP header of the compressed data.Note: it is an error to call this function while a compression is in progress; it may only be called immediately after creation of self, or after resetting it with
Gio.Converter.reset().New in version 2.26.
Property Details¶
- Gio.ZlibCompressor.props.file_info¶
- Name:
file-info- Type:
- Default Value:
- Flags:
If set to a non-
NoneGio.FileInfoobject, andGio.ZlibCompressor:formatisGio.ZlibCompressorFormat.GZIP, the compressor will write the file name and modification time from the file info to the GZIP header.New in version 2.26.
- Gio.ZlibCompressor.props.format¶
- Name:
format- Type:
- Default Value:
- Flags:
The format of the compressed data.
New in version 2.24.
- Gio.ZlibCompressor.props.level¶
- Name:
level- Type:
- Default Value:
-1- Flags:
The level of compression from
0(no compression) to9(most compression).-1for the default level.New in version 2.24.