Package ch.bailu.gtk.gio
Class PollableOutputStreamInterface
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.PollableOutputStreamInterface
- All Implemented Interfaces:
PointerInterface
The interface for pollable output streams.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @write_nonblocking calls
g_pollable_output_stream_is_writable(), and then calls
g_output_stream_write() if it returns %TRUE. This means you only
need to override it if it is possible that your @is_writable
implementation may return %TRUE when the stream is not actually
writable.
The default implementation of @writev_nonblocking calls
g_pollable_output_stream_write_nonblocking() for each vector, and converts
its return value and error (if set) to a #GPollableReturn. You should
override this where possible to avoid having to allocate a #GError to return
%G_IO_ERROR_WOULD_BLOCK.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @write_nonblocking calls
g_pollable_output_stream_is_writable(), and then calls
g_output_stream_write() if it returns %TRUE. This means you only
need to override it if it is possible that your @is_writable
implementation may return %TRUE when the stream is not actually
writable.
The default implementation of @writev_nonblocking calls
g_pollable_output_stream_write_nonblocking() for each vector, and converts
its return value and error (if set) to a #GPollableReturn. You should
override this where possible to avoid having to allocate a #GError to return
%G_IO_ERROR_WOULD_BLOCK.
https://docs.gtk.org/gio/struct.PollableOutputStreamInterface.html
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCanPoll
ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCreateSource
ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnIsWritable
ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnWriteNonblocking
static int
static TypeSystem.TypeSize
static TypeSystem.TypeSize
void
void
setFieldCreateSource
(PollableOutputStreamInterface.OnCreateSource create_source) void
void
setFieldWriteNonblocking
(PollableOutputStreamInterface.OnWriteNonblocking write_nonblocking) Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
G_IFACE
The parent interface.
Private field: direct-type- See Also:
-
CAN_POLL
- See Also:
-
IS_WRITABLE
- See Also:
-
CREATE_SOURCE
- See Also:
-
WRITE_NONBLOCKING
- See Also:
-
-
Constructor Details
-
PollableOutputStreamInterface
-
-
Method Details
-
getClassHandler
-
setFieldCanPoll
-
getFieldCanPoll
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCanPoll getFieldCanPoll() -
setFieldIsWritable
-
getFieldIsWritable
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnIsWritable getFieldIsWritable() -
setFieldCreateSource
-
getFieldCreateSource
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCreateSource getFieldCreateSource() -
setFieldWriteNonblocking
public void setFieldWriteNonblocking(PollableOutputStreamInterface.OnWriteNonblocking write_nonblocking) -
getFieldWriteNonblocking
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnWriteNonblocking getFieldWriteNonblocking() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-