Class ZlibDecompressor

All Implemented Interfaces:
Converter, Proxy

@Generated("org.javagi.JavaGI") public class ZlibDecompressor extends GObject implements Converter
GZlibDecompressor is an implementation of Converter that decompresses data compressed with zlib.
  • Constructor Details

    • ZlibDecompressor

      public ZlibDecompressor(MemorySegment address)
      Create a ZlibDecompressor instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ZlibDecompressor

      public ZlibDecompressor(ZlibCompressorFormat format)
      Creates a new decompressor.
      Parameters:
      format - the format to use for the compressed data
      Since:
      2.24
    • ZlibDecompressor

      public ZlibDecompressor()
      Create a new ZlibDecompressor.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ZlibDecompressor class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ZlibDecompressor asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • getFileInfo

      public @Nullable FileInfo getFileInfo()
      Gets the Gio.ZlibDecompressor:file-info property.
      Returns:
      file info from the gzip header, if available
      Since:
      2.26
    • builder

      public static ZlibDecompressor.Builder<? extends ZlibDecompressor.Builder> builder()
      A ZlibDecompressor.Builder object constructs a ZlibDecompressor with the specified properties. Use the various set...() methods to set properties, and finish construction with ZlibDecompressor.Builder.build().
      Returns:
      the builder object