Gio.ZlibCompressor¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37), Gio.Converter (2) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(format, level) | 
| get_file_info() | |
| set_file_info(file_info) | 
Virtual Methods¶
| Inherited: | GObject.Object (7), Gio.Converter (2) | 
|---|
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| file-info | Gio.FileInfo | r/w | File info | 
| format | Gio.ZlibCompressorFormat | r/w/co | The format of the compressed data | 
| level | int | r/w/co | The level of compression from 0 (no compression) to 9 (most compression), -1 for the default level | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Gio.ZlibCompressor(**kwargs)¶
- Bases: - GObject.Object,- Gio.Converter- Abstract: - No - Structure: - Gio.ZlibCompressorClass- Zlib decompression - 
classmethod new(format, level)[source]¶
- Parameters: - format (Gio.ZlibCompressorFormat) – The format to use for the compressed data
- level (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. 
- format (
 - 
get_file_info()[source]¶
- Returns: - a - Gio.FileInfo, or- None- Return type: - Gio.FileInfo- Returns the - Gio.ZlibCompressor- :file-infoproperty.- New in version 2.26. 
 - 
set_file_info(file_info)[source]¶
- Parameters: - file_info ( - Gio.FileInfoor- None) – a- Gio.FileInfo- Sets file_info in self. If non- - None, and self’s- Gio.ZlibCompressor- :formatproperty is- Gio.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. 
 
- 
classmethod 
Property Details¶
- 
Gio.ZlibCompressor.props.file_info¶
- Name: - file-info- Type: - Gio.FileInfo- Default Value: - None- Flags: - READABLE,- WRITABLE- If set to a non- - None- Gio.FileInfoobject, and- Gio.ZlibCompressor- :formatis- Gio.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: - Gio.ZlibCompressorFormat- Default Value: - Gio.ZlibCompressorFormat.ZLIB- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The format of the compressed data 
- 
Gio.ZlibCompressor.props.level¶
- Name: - level- Type: - int- Default Value: - -1- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The level of compression from 0 (no compression) to 9 (most compression), -1 for the default level