Class ZlibCompressor

All Implemented Interfaces:
PointerInterface

public class ZlibCompressor extends Object
#GZlibCompressor is an implementation of #GConverter that
compresses data using zlib.

https://docs.gtk.org/gio/class.ZlibCompressor.html

  • Constructor Details

    • ZlibCompressor

      public ZlibCompressor(PointerContainer pointer)
    • ZlibCompressor

      public ZlibCompressor(int format, int level)
      Creates a new #GZlibCompressor.
      Parameters:
      format - The format to use for the compressed data
      level - compression level (0-9), -1 for default
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getFileInfo

      public FileInfo getFileInfo()
      Returns the #GZlibCompressor:file-info property.
      Returns:
      a #GFileInfo, or %NULL
    • setFileInfo

      public void setFileInfo(@Nullable FileInfo file_info)
      Sets @file_info in @compressor. If non-%NULL, and @compressor's
      #GZlibCompressor:format property is %G_ZLIB_COMPRESSOR_FORMAT_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 @compressor,
      or after resetting it with g_converter_reset().
      Parameters:
      file_info - a #GFileInfo
    • asConverter

      public Converter asConverter()
      Implements interface Converter. Call this to get access to interface functions.
      Returns:
      Converter
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()