Package ch.bailu.gtk.gio
Klasse PollableInputStreamInterface
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.PollableInputStreamInterface
- Alle implementierten Schnittstellen:
PointerInterface
The interface for pollable input streams.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @read_nonblocking calls
g_pollable_input_stream_is_readable(), and then calls
g_input_stream_read() if it returns %TRUE. This means you only need
to override it if it is possible that your @is_readable
implementation may return %TRUE when the stream is not actually
readable.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @read_nonblocking calls
g_pollable_input_stream_is_readable(), and then calls
g_input_stream_read() if it returns %TRUE. This means you only need
to override it if it is possible that your @is_readable
implementation may return %TRUE when the stream is not actually
readable.
https://docs.gtk.org/gio/struct.PollableInputStreamInterface.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfacestatic interfacestatic interfacestatic interface -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringChecks if the #GPollableInputStream instance is actually pollable
SeePollableInputStreamInterface.OnCanPoll.onCanPoll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)static final StringCreates a #GSource to poll the stream
SeePollableInputStreamInterface.OnCreateSource.onCreateSource(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.gio.Cancellable)static final StringThe parent interface.static final StringChecks if the stream is readable
SeePollableInputStreamInterface.OnIsReadable.onIsReadable(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)static final StringDoes a non-blocking read or returns
%G_IO_ERROR_WOULD_BLOCK
SeePollableInputStreamInterface.OnReadNonblocking.onReadNonblocking(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.type.Pointer, long) -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibung -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandlerch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCanPollChecks if the #GPollableInputStream instance is actually pollable
SeePollableInputStreamInterface.OnCanPoll.onCanPoll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCreateSourceCreates a #GSource to poll the stream
SeePollableInputStreamInterface.OnCreateSource.onCreateSource(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.gio.Cancellable)ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnIsReadableChecks if the stream is readable
SeePollableInputStreamInterface.OnIsReadable.onIsReadable(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnReadNonblockingDoes a non-blocking read or returns
%G_IO_ERROR_WOULD_BLOCK
SeePollableInputStreamInterface.OnReadNonblocking.onReadNonblocking(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.type.Pointer, long)static intstatic TypeSystem.TypeSizestatic TypeSystem.TypeSizevoidChecks if the #GPollableInputStream instance is actually pollable
SeePollableInputStreamInterface.OnCanPoll.onCanPoll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)voidsetFieldCreateSource(PollableInputStreamInterface.OnCreateSource create_source) Creates a #GSource to poll the stream
SeePollableInputStreamInterface.OnCreateSource.onCreateSource(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.gio.Cancellable)voidChecks if the stream is readable
SeePollableInputStreamInterface.OnIsReadable.onIsReadable(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)voidsetFieldReadNonblocking(PollableInputStreamInterface.OnReadNonblocking read_nonblocking) Does a non-blocking read or returns
%G_IO_ERROR_WOULD_BLOCK
SeePollableInputStreamInterface.OnReadNonblocking.onReadNonblocking(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.type.Pointer, long)Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
G_IFACE
The parent interface.
Private field: direct-type- Siehe auch:
-
CAN_POLL
Checks if the #GPollableInputStream instance is actually pollable
SeePollableInputStreamInterface.OnCanPoll.onCanPoll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)- Siehe auch:
-
IS_READABLE
Checks if the stream is readable
SeePollableInputStreamInterface.OnIsReadable.onIsReadable(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream)- Siehe auch:
-
CREATE_SOURCE
Creates a #GSource to poll the stream
SeePollableInputStreamInterface.OnCreateSource.onCreateSource(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.gio.Cancellable)- Siehe auch:
-
READ_NONBLOCKING
Does a non-blocking read or returns
%G_IO_ERROR_WOULD_BLOCK
SeePollableInputStreamInterface.OnReadNonblocking.onReadNonblocking(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.type.Pointer, long)- Siehe auch:
-
-
Konstruktordetails
-
PollableInputStreamInterface
-
PollableInputStreamInterface
public PollableInputStreamInterface()
-
-
Methodendetails
-
getClassHandler
-
setFieldCanPoll
Checks if the #GPollableInputStream instance is actually pollable
SeePollableInputStreamInterface.OnCanPoll.onCanPoll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream) -
getFieldCanPoll
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCanPoll getFieldCanPoll()Checks if the #GPollableInputStream instance is actually pollable
SeePollableInputStreamInterface.OnCanPoll.onCanPoll(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream) -
setFieldIsReadable
Checks if the stream is readable
SeePollableInputStreamInterface.OnIsReadable.onIsReadable(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream) -
getFieldIsReadable
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnIsReadable getFieldIsReadable()Checks if the stream is readable
SeePollableInputStreamInterface.OnIsReadable.onIsReadable(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream) -
setFieldCreateSource
Creates a #GSource to poll the stream
SeePollableInputStreamInterface.OnCreateSource.onCreateSource(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.gio.Cancellable) -
getFieldCreateSource
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCreateSource getFieldCreateSource()Creates a #GSource to poll the stream
SeePollableInputStreamInterface.OnCreateSource.onCreateSource(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.gio.Cancellable) -
setFieldReadNonblocking
public void setFieldReadNonblocking(PollableInputStreamInterface.OnReadNonblocking read_nonblocking) Does a non-blocking read or returns
%G_IO_ERROR_WOULD_BLOCK
SeePollableInputStreamInterface.OnReadNonblocking.onReadNonblocking(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.type.Pointer, long) -
getFieldReadNonblocking
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnReadNonblocking getFieldReadNonblocking()Does a non-blocking read or returns
%G_IO_ERROR_WOULD_BLOCK
SeePollableInputStreamInterface.OnReadNonblocking.onReadNonblocking(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gio.PollableInputStream, ch.bailu.gtk.type.Pointer, long) -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-