Class: Gio::ZlibCompressor

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

Instance Method Summary collapse

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

Returns format.

Returns:

#format=(format) ⇒ Gio::ZlibCompressorFormat

Parameters:

Returns:

#levelInteger

Returns level.

Returns:

  • (Integer)

    level

#level=(level) ⇒ Integer

Parameters:

  • level (Integer)

Returns:

  • (Integer)

    level

  • (Integer)

    level

#new(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

Returns: