Class: Gio::ZlibCompressor
- Inherits:
-
Object
- Object
- Gio::ZlibCompressor
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#file_info ⇒ Gio::FileInfo
A [classGio.FileInfo] containing file information to put into the gzip header.
-
#file_info=(file_info) ⇒ Gio::FileInfo
A [classGio.FileInfo] containing file information to put into the gzip header.
-
#format ⇒ Gio::ZlibCompressorFormat
The format of the compressed data.
-
#format=(format) ⇒ Gio::ZlibCompressorFormat
The format of the compressed data.
-
#initialize(format, level) ⇒ Gio::ZlibCompressor
constructor
Creates a compressor.
-
#level ⇒ Integer
The level of compression from
0(no compression) to9(most compression). -
#level=(level) ⇒ Integer
The level of compression from
0(no compression) to9(most compression). -
#os ⇒ Integer
The OS code of the gzip header.
-
#os=(os) ⇒ Integer
The OS code of the gzip header.
Constructor Details
#initialize(format, level) ⇒ Gio::ZlibCompressor
Creates a compressor.
Instance Method Details
#file_info ⇒ Gio::FileInfo
A [classGio.FileInfo] containing file information to put into the gzip
header.
The file name and modification time from the file info will be used.
This will only be used if non-NULL and
[propertyGio.ZlibCompressor:format] is
[enumGio.ZlibCompressorFormat.GZIP].
#file_info=(file_info) ⇒ Gio::FileInfo
A [classGio.FileInfo] containing file information to put into the gzip
header.
The file name and modification time from the file info will be used.
This will only be used if non-NULL and
[propertyGio.ZlibCompressor:format] is
[enumGio.ZlibCompressorFormat.GZIP].
#format ⇒ Gio::ZlibCompressorFormat
The format of the compressed data.
#format=(format) ⇒ Gio::ZlibCompressorFormat
The format of the compressed data.
#level ⇒ Integer
The level of compression from 0 (no compression) to 9 (most
compression).
-1 for the default level.
#level=(level) ⇒ Integer
The level of compression from 0 (no compression) to 9 (most
compression).
-1 for the default level.
#os ⇒ Integer
The OS code of the gzip header.
This will be used if set to a non-negative value, and if
[propertyGio.ZlibCompressor:format] is
[enumGio.ZlibCompressorFormat.GZIP], the compressor will set the OS code of
the gzip header to this value.
If the value is unset, zlib will set the OS code depending on the platform.
This may be undesirable when reproducible output is desired. In that case setting
the OS code to 3 (for Unix) is recommended.
#os=(os) ⇒ Integer
The OS code of the gzip header.
This will be used if set to a non-negative value, and if
[propertyGio.ZlibCompressor:format] is
[enumGio.ZlibCompressorFormat.GZIP], the compressor will set the OS code of
the gzip header to this value.
If the value is unset, zlib will set the OS code depending on the platform.
This may be undesirable when reproducible output is desired. In that case setting
the OS code to 3 (for Unix) is recommended.