Gio.SimpleIOStream¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gio.SimpleIOStream(**kwargs)¶
- Bases:
- 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:
input_stream (
Gio.InputStream
) – aGio.InputStream
.output_stream (
Gio.OutputStream
) – aGio.OutputStream
.
- Returns:
a new
Gio.SimpleIOStream
instance.- Return type:
Creates a new
Gio.SimpleIOStream
wrapping input_stream and output_stream. See alsoGio.IOStream
.New in version 2.44.