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
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.
-
Constructor Summary
ConstructorDescriptionAllocate a new PollableInputStreamInterface.Allocate a new PollableInputStreamInterface.Create a PollableInputStreamInterface proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideCanPoll
(Arena arena, Method method) Override virtual methodcan_poll
.void
overrideCreateSource
(Arena arena, Method method) Override virtual methodcreate_source
.void
overrideIsReadable
(Arena arena, Method method) Override virtual methodis_readable
.void
overrideReadNonblocking
(Arena arena, Method method) Override virtual methodread_nonblocking
.Methods inherited from class org.gnome.gobject.TypeInterface
addPrerequisite, getPlugin, instantiatablePrerequisite, peek, peekParent, prerequisites, readGInstanceType, readGType, writeGInstanceType, writeGType
Methods inherited from class io.github.jwharm.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
-
PollableInputStreamInterface
Allocate a new PollableInputStreamInterface.- Parameters:
arena
- to control the memory allocation scope
-
PollableInputStreamInterface
public PollableInputStreamInterface()Allocate a new PollableInputStreamInterface. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideCanPoll
-
overrideIsReadable
-
overrideCreateSource
-
overrideReadNonblocking
-