Package org.gnome.gio

Class PollableOutputStream.PollableOutputStreamInterface

java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gio.PollableOutputStream.PollableOutputStreamInterface
All Implemented Interfaces:
Proxy
Enclosing interface:
PollableOutputStream

public static class PollableOutputStream.PollableOutputStreamInterface extends TypeInterface
The interface for pollable output streams.

The default implementation of canPoll always returns true.

The default implementation of writeNonblocking 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 isWritable implementation may return true when the stream is not actually writable.

The default implementation of writevNonblocking 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 IOErrorEnum.WOULD_BLOCK.