Class CharsetConverter
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gio.CharsetConverter
@Generated("org.javagi.JavaGI")
public class CharsetConverter
extends GObject
implements Converter, Initable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCharsetConverter.Builder<B extends CharsetConverter.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClassNested classes/interfaces inherited from interface Converter
Converter.Converter$Impl, Converter.ConverterIfaceNested classes/interfaces inherited from interface Initable
Initable.Initable$Impl, Initable.InitableIface -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new CharsetConverter.CharsetConverter(MemorySegment address) Create a CharsetConverter instance for the provided memory address.CharsetConverter(String toCharset, String fromCharset) Creates a newGCharsetConverter. -
Method Summary
Modifier and TypeMethodDescriptionprotected CharsetConverterasParent()Return this instance as if it were its parent type.static CharsetConverter.Builder<? extends CharsetConverter.Builder> builder()ACharsetConverter.Builderobject constructs aCharsetConverterwith the specified properties.static MemoryLayoutThe memory layout of the native struct.intGets the number of fallbacks that this CharsetConverter has applied so far.static @Nullable TypegetType()Get the GType of the CharsetConverter class.booleanGets theGCharsetConverter:use-fallback property.voidsetUseFallback(boolean useFallback) Sets theGCharsetConverter:use-fallback property.Methods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCodeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Converter
convert, convert, convertBytes, reset
-
Constructor Details
-
CharsetConverter
Create a CharsetConverter instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
CharsetConverter
Creates a newGCharsetConverter.- Parameters:
toCharset- destination charsetfromCharset- source charset- Throws:
GErrorException- seeGError- Since:
- 2.24
-
CharsetConverter
public CharsetConverter()Create a new CharsetConverter.
-
-
Method Details
-
getType
Get the GType of the CharsetConverter class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
getNumFallbacks
public int getNumFallbacks()Gets the number of fallbacks that this CharsetConverter has applied so far.- Returns:
- the number of fallbacks that this CharsetConverter has applied
- Since:
- 2.24
-
getUseFallback
public boolean getUseFallback()Gets theGCharsetConverter:use-fallback property.- Returns:
trueif fallbacks are used by this CharsetConverter- Since:
- 2.24
-
setUseFallback
public void setUseFallback(boolean useFallback) Sets theGCharsetConverter:use-fallback property.- Parameters:
useFallback-trueto use fallbacks- Since:
- 2.24
-
builder
ACharsetConverter.Builderobject constructs aCharsetConverterwith the specified properties. Use the variousset...()methods to set properties, and finish construction withCharsetConverter.Builder.build().- Returns:
- the builder object
-