Package org.gnome.gio
Class PollableOutputStream.PollableOutputStreamInterface
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gio.PollableOutputStream.PollableOutputStreamInterface
- All Implemented Interfaces:
Proxy
- Enclosing interface:
PollableOutputStream
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.
- Since:
- 2.28
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a PollableOutputStreamInterface 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.voidoverrideIsWritable(Arena arena, @Nullable Method method) Override virtual methodis_writable.voidoverrideWriteNonblocking(Arena arena, @Nullable Method method) Override virtual methodwrite_nonblocking.voidoverrideWritevNonblocking(Arena arena, @Nullable Method method) Override virtual methodwritev_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
-
PollableOutputStreamInterface
Create a PollableOutputStreamInterface 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
-
overrideIsWritable
-
overrideCreateSource
-
overrideWriteNonblocking
-
overrideWritevNonblocking
-