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.ConverterAbstract: No Structure: Gio.ZlibCompressorClassZlib 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.ZlibCompressorReturn type: Creates a new
Gio.ZlibCompressor.New in version 2.24.
- format (
-
get_file_info()[source]¶ Returns: a Gio.FileInfo, orNoneReturn type: Gio.FileInfoReturns the
Gio.ZlibCompressor:file-infoproperty.New in version 2.26.
-
set_file_info(file_info)[source]¶ Parameters: file_info ( Gio.FileInfoorNone) – aGio.FileInfoSets 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.
-
classmethod
Property Details¶
-
Gio.ZlibCompressor.props.file_info¶ Name: file-infoType: Gio.FileInfoDefault Value: NoneFlags: READABLE,WRITABLEIf 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: formatType: Gio.ZlibCompressorFormatDefault Value: Gio.ZlibCompressorFormat.ZLIBFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe format of the compressed data
-
Gio.ZlibCompressor.props.level¶ Name: levelType: intDefault Value: -1Flags: READABLE,WRITABLE,CONSTRUCT_ONLYThe level of compression from 0 (no compression) to 9 (most compression), -1 for the default level