Class ConverterOutputStream
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gio.OutputStream
org.gnome.gio.FilterOutputStream
org.gnome.gio.ConverterOutputStream
- All Implemented Interfaces:
AutoCloseable, PollableOutputStream, Proxy, AutoCloseable
@Generated("org.javagi.JavaGI")
public class ConverterOutputStream
extends FilterOutputStream
implements PollableOutputStream
Converter output stream implements OutputStream and allows
conversion of data of various types during reading.
As of GLib 2.34, GConverterOutputStream implements
PollableOutputStream.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class FilterOutputStream
FilterOutputStream.FilterOutputStream$Impl, FilterOutputStream.FilterOutputStreamClassNested classes/interfaces inherited from class OutputStream
OutputStream.OutputStream$Impl, OutputStream.OutputStreamClassNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClassNested classes/interfaces inherited from interface PollableOutputStream
PollableOutputStream.PollableOutputStream$Impl, PollableOutputStream.PollableOutputStreamInterface -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ConverterOutputStream.ConverterOutputStream(MemorySegment address) Create a ConverterOutputStream instance for the provided memory address.ConverterOutputStream(OutputStream baseStream, Converter converter) Creates a new converter output stream for thebaseStream. -
Method Summary
Modifier and TypeMethodDescriptionprotected ConverterOutputStreamasParent()Return this instance as if it were its parent type.static ConverterOutputStream.Builder<? extends ConverterOutputStream.Builder> builder()AConverterOutputStream.Builderobject constructs aConverterOutputStreamwith the specified properties.Gets theGConverterthat is used byconverterStream.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the ConverterOutputStream class.Methods inherited from class FilterOutputStream
getBaseStream, getCloseBaseStream, setCloseBaseStreamMethods inherited from class OutputStream
clearPending, close, closeAsync, closeFinish, closeFn, flush, flushAsync, flushFinish, hasPending, isClosed, isClosing, printf, setPending, splice, splice, spliceAsync, spliceAsync, spliceFinish, write, writeAll, writeAllAsync, writeAllFinish, writeAsync, writeBytes, writeBytesAsync, writeBytesFinish, writeFinish, writev, writevAll, writevAllAsync, writevAllFinish, writevAsync, writevFinishMethods 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 AutoCloseable
closeMethods inherited from interface PollableOutputStream
canPoll, createSource, isWritable, writeNonblocking, writevNonblocking
-
Constructor Details
-
ConverterOutputStream
Create a ConverterOutputStream instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ConverterOutputStream
Creates a new converter output stream for thebaseStream.- Parameters:
baseStream- aGOutputStreamconverter- aGConverter
-
ConverterOutputStream
public ConverterOutputStream()Create a new ConverterOutputStream.
-
-
Method Details
-
getType
Get the GType of the ConverterOutputStream 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.- Overrides:
asParentin classFilterOutputStream- Returns:
- the instance as if it were its parent type
-
getConverter
Gets theGConverterthat is used byconverterStream.- Returns:
- the converter of the converter output stream
- Since:
- 2.24
-
builder
AConverterOutputStream.Builderobject constructs aConverterOutputStreamwith the specified properties. Use the variousset...()methods to set properties, and finish construction withConverterOutputStream.Builder.build().- Returns:
- the builder object
-