Gio.SimpleIOStream

g GObject.Object GObject.Object Gio.IOStream Gio.IOStream GObject.Object->Gio.IOStream Gio.SimpleIOStream Gio.SimpleIOStream Gio.IOStream->Gio.SimpleIOStream

Subclasses:

None

Methods

Inherited:

Gio.IOStream (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (input_stream, output_stream)

Virtual Methods

Inherited:

Gio.IOStream (5), GObject.Object (7)

Properties

Inherited:

Gio.IOStream (3)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gio.SimpleIOStream(**kwargs)
Bases:

Gio.IOStream

Abstract:

No

GSimpleIOStream creates a [class`Gio`.IOStream] from an arbitrary [class`Gio`.InputStream] and [class`Gio`.OutputStream]. This allows any pair of input and output streams to be used with [class`Gio`.IOStream] methods.

This is useful when you obtained a [class`Gio`.InputStream] and a [class`Gio`.OutputStream] by other means, for instance creating them with platform specific methods as g_unix_input_stream_new() (from gio-unix-2.0.pc / GioUnix-2.0), and you want to take advantage of the methods provided by [class`Gio`.IOStream].

New in version 2.44.

classmethod new(input_stream, output_stream)[source]
Parameters:
Returns:

a new Gio.SimpleIOStream instance.

Return type:

Gio.IOStream

Creates a new Gio.SimpleIOStream wrapping input_stream and output_stream. See also Gio.IOStream.

New in version 2.44.