Class: Gio::ZlibCompressor

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(format, level) ⇒ Gio::ZlibCompressor

Creates a new GZlib::Compressor.

Parameters:

  • format (Gio::ZlibCompressorFormat)

    The format to use for the compressed data

  • level (Integer)

    compression level (0-9), -1 for default

Instance Method Details

#file_infoGio::FileInfo

If set to a non-nil GFile::Info object, and #GZlibCompressor:format is %G_ZLIB_COMPRESSOR_FORMAT_GZIP, the compressor will write the file name and modification time from the file info to the GZIP header.

Returns:

#file_info=(file_info) ⇒ Gio::FileInfo

If set to a non-nil GFile::Info object, and #GZlibCompressor:format is %G_ZLIB_COMPRESSOR_FORMAT_GZIP, the compressor will write the file name and modification time from the file info to the GZIP header.

Parameters:

Returns:

#formatGio::ZlibCompressorFormat

The format of the compressed data.

Returns:

#format=(format) ⇒ Gio::ZlibCompressorFormat

The format of the compressed data.

Parameters:

Returns:

#levelInteger

The level of compression from 0 (no compression) to 9 (most compression). -1 for the default level.

Returns:

  • (Integer)

    level

#level=(level) ⇒ Integer

The level of compression from 0 (no compression) to 9 (most compression). -1 for the default level.

Parameters:

  • level (Integer)

Returns:

  • (Integer)

    level

  • (Integer)

    level