Package org.gnome.gio
Class PollableInputStream.PollableInputStreamInterface
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gio.PollableInputStream.PollableInputStreamInterface
- All Implemented Interfaces:
Proxy
- Enclosing interface:
PollableInputStream
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.
- Since:
- 2.28
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a PollableInputStreamInterface proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.voidoverrideCanPoll(Arena arena, @Nullable Method method) Override virtual methodcan_poll.voidoverrideCreateSource(Arena arena, @Nullable Method method) Override virtual methodcreate_source.voidoverrideIsReadable(Arena arena, @Nullable Method method) Override virtual methodis_readable.voidoverrideReadNonblocking(Arena arena, @Nullable Method method) Override virtual methodread_nonblocking.Methods inherited from class org.gnome.gobject.TypeInterface
addPrerequisite, getPlugin, instantiatablePrerequisite, peek, peekParent, prerequisites, readGInstanceType, readGType, writeGInstanceType, writeGTypeMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PollableInputStreamInterface
Create a PollableInputStreamInterface proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideCanPoll
-
overrideIsReadable
-
overrideCreateSource
-
overrideReadNonblocking
-