Class CharsetConverter.Builder<B extends CharsetConverter.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.CharsetConverter.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
CharsetConverter

public static class CharsetConverter.Builder<B extends CharsetConverter.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public CharsetConverter build()
      Finish building the CharsetConverter object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to CharsetConverter.
      Overrides:
      build in class GObject.Builder<B extends CharsetConverter.Builder<B>>
      Returns:
      a new instance of CharsetConverter with the properties that were set in the Builder object.
    • setFromCharset

      public B setFromCharset(String fromCharset)
      The character encoding to convert from.
      Parameters:
      fromCharset - the value for the from-charset property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.24
    • setToCharset

      public B setToCharset(String toCharset)
      The character encoding to convert to.
      Parameters:
      toCharset - the value for the to-charset property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.24
    • setUseFallback

      public B setUseFallback(boolean useFallback)
      Use fallback (of form \\<hexval>) for invalid bytes.
      Parameters:
      useFallback - the value for the use-fallback property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.24