Class CharsetConverter

All Implemented Interfaces:
PointerInterface

public class CharsetConverter extends Object
#GCharsetConverter is an implementation of #GConverter based on
GIConv.

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

  • Constructor Details

    • CharsetConverter

      public CharsetConverter(PointerContainer pointer)
    • CharsetConverter

      public CharsetConverter(@Nonnull Str to_charset, @Nonnull Str from_charset)
      Creates a new #GCharsetConverter.
      Parameters:
      to_charset - destination charset
      from_charset - source charset
    • CharsetConverter

      public CharsetConverter(String to_charset, String from_charset)
      Creates a new #GCharsetConverter.
      Parameters:
      to_charset - destination charset
      from_charset - source charset
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getNumFallbacks

      public int getNumFallbacks()
      Gets the number of fallbacks that @converter has applied so far.
      Returns:
      the number of fallbacks that @converter has applied
    • getUseFallback

      public boolean getUseFallback()
      Gets the #GCharsetConverter:use-fallback property.
      Returns:
      %TRUE if fallbacks are used by @converter
    • setUseFallback

      public void setUseFallback(boolean use_fallback)
      Sets the #GCharsetConverter:use-fallback property.
      Parameters:
      use_fallback - %TRUE to use fallbacks
    • asConverter

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

      public Initable asInitable()
      Implements interface Initable. Call this to get access to interface functions.
      Returns:
      Initable
    • 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()