Gio.SimpleIOStream - Classes - Gio 2.0 (original) (raw)
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:
class | new (input_stream, output_stream) |
---|
Virtual Methods¶
Inherited:
Gio.IOStream (5), GObject.Object (7)
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 asg_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) – a Gio.InputStream.
- output_stream (Gio.OutputStream) – a Gio.OutputStream.
Returns:
a new Gio.SimpleIOStream instance.
Return type:
Creates a new Gio.SimpleIOStream wrapping input_stream and output_stream. See also Gio.IOStream.
New in version 2.44.