Package org.gnome.gio

Class PollableInputStream.PollableInputStreamInterface

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

public static class PollableInputStream.PollableInputStreamInterface extends TypeInterface
The interface for pollable input streams.

The default implementation of canPoll always returns true.

The default implementation of readNonblocking 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 isReadable implementation may return true when the stream is not actually readable.