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.IOStreamAbstract: No Gio.SimpleIOStreamcreates aGio.IOStreamfrom an arbitraryGio.InputStreamandGio.OutputStream. This allows any pair of input and output streams to be used withGio.IOStreammethods.This is useful when you obtained a
Gio.InputStreamand aGio.OutputStreamby other means, for instance creating them with platform specific methods asGio.UnixInputStream.new() or g_win32_input_stream_new(), and you want to take advantage of the methods provided byGio.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.SimpleIOStreaminstance.Return type: Creates a new
Gio.SimpleIOStreamwrapping input_stream and output_stream. See alsoGio.IOStream.New in version 2.44.
- input_stream (
-
classmethod