Package ch.bailu.gtk.gio
Klasse UnixOutputStream
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.OutputStream
ch.bailu.gtk.gio.UnixOutputStream
- Alle implementierten Schnittstellen:
PointerInterface
`GUnixOutputStream` implements [class@Gio.OutputStream] for writing to a UNIX
file descriptor, including asynchronous operations. (If the file
descriptor refers to a socket or pipe, this will use `poll()` to do
asynchronous I/O. If it refers to a regular file, it will fall back
to doing asynchronous I/O in another thread.)
Note that `<gio/gunixoutputstream.h>` belongs to the UNIX-specific GIO
interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file
file or the `GioUnix-2.0` GIR namespace when using it.
file descriptor, including asynchronous operations. (If the file
descriptor refers to a socket or pipe, this will use `poll()` to do
asynchronous I/O. If it refers to a regular file, it will fall back
to doing asynchronous I/O in another thread.)
Note that `<gio/gunixoutputstream.h>` belongs to the UNIX-specific GIO
interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file
file or the `GioUnix-2.0` GIR namespace when using it.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gio.OutputStream
OutputStream.OnAsyncReadyCallback
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungUnixOutputStream
(int fd, boolean close_fd) Creates a new #GUnixOutputStream for the given @fd.UnixOutputStream
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceFileDescriptorBased
.Implements interfacePollableOutputStream
.static ClassHandler
boolean
Returns whether the file descriptor of @stream will be
closed when the stream is closed.int
getFd()
Return the UNIX file descriptor that the stream writes to.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
setCloseFd
(boolean close_fd) Sets whether the file descriptor of @stream shall be closed
when the stream is closed.Von Klasse geerbte Methoden ch.bailu.gtk.gio.OutputStream
clearPending, close, closeAsync, closeFinish, flush, flushAsync, flushFinish, hasPending, isClosed, isClosing, setPending, splice, spliceAsync, spliceFinish, write, writeAll, writeAllAsync, writeAllFinish, writeAsync, writeBytes, writeBytesAsync, writeBytesFinish, writeFinish, writevAllFinish, writevFinish
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
UnixOutputStream
-
UnixOutputStream
public UnixOutputStream(int fd, boolean close_fd) Creates a new #GUnixOutputStream for the given @fd.
If @close_fd, is %TRUE, the file descriptor will be closed when
the output stream is destroyed.- Parameter:
fd
- a UNIX file descriptorclose_fd
- %TRUE to close the file descriptor when done
-
-
Methodendetails
-
getClassHandler
-
getCloseFd
public boolean getCloseFd()Returns whether the file descriptor of @stream will be
closed when the stream is closed.- Gibt zurück:
- %TRUE if the file descriptor is closed when done
-
getFd
public int getFd()Return the UNIX file descriptor that the stream writes to.- Gibt zurück:
- The file descriptor of @stream
-
setCloseFd
public void setCloseFd(boolean close_fd) Sets whether the file descriptor of @stream shall be closed
when the stream is closed.- Parameter:
close_fd
- %TRUE to close the file descriptor when done
-
asFileDescriptorBased
Implements interfaceFileDescriptorBased
. Call this to get access to interface functions.- Gibt zurück:
FileDescriptorBased
-
asPollableOutputStream
Implements interfacePollableOutputStream
. Call this to get access to interface functions.- Gibt zurück:
PollableOutputStream
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-