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
Gio.SimpleIOStream
creates aGio.IOStream
from an arbitraryGio.InputStream
andGio.OutputStream
. This allows any pair of input and output streams to be used withGio.IOStream
methods.This is useful when you obtained a
Gio.InputStream
and aGio.OutputStream
by 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.SimpleIOStream
instance.- Return type:
Creates a new
Gio.SimpleIOStream
wrapping input_stream and output_stream. See alsoGio.IOStream
.New in version 2.44.