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

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

This is useful when you obtained a Gio.InputStream and a Gio.OutputStream by other means, for instance creating them with platform specific methods as Gio.UnixInputStream.new() or g_win32_input_stream_new(), and you want to take advantage of the methods provided by 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.