:right-sidebar: True SimpleIOStream =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.44 .. class:: SimpleIOStream(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gio.IOStream`, :class:`~gi.repository.GObject.Object` ``GSimpleIOStream`` creates a :obj:`~gi.repository.Gio.IOStream` from an arbitrary :obj:`~gi.repository.Gio.InputStream` and :obj:`~gi.repository.Gio.OutputStream`\. This allows any pair of input and output streams to be used with :obj:`~gi.repository.Gio.IOStream` methods. This is useful when you obtained a :obj:`~gi.repository.Gio.InputStream` and a :obj:`~gi.repository.Gio.OutputStream` by other means, for instance creating them with platform specific methods as ```g_unix_input_stream_new()`` <../gio-unix/ctor.UnixInputStream.new.html>`__ (from ``gio-unix-2.0.pc`` / ``GioUnix-2.0``\), and you want to take advantage of the methods provided by :obj:`~gi.repository.Gio.IOStream`\. Constructors ------------ .. rst-class:: interim-class .. class:: SimpleIOStream :no-index: .. classmethod:: new(input_stream: ~gi.repository.Gio.InputStream, output_stream: ~gi.repository.Gio.OutputStream) -> ~gi.repository.Gio.IOStream Creates a new ``GSimpleIOStream`` wrapping ``input_stream`` and ``output_stream``\. See also :obj:`~gi.repository.Gio.IOStream`\. .. versionadded:: 2.44 :param input_stream: a :obj:`~gi.repository.Gio.InputStream`\. :param output_stream: a :obj:`~gi.repository.Gio.OutputStream`\. Properties ---------- .. rst-class:: interim-class .. class:: SimpleIOStream :no-index: .. attribute:: props.input_stream :type: ~gi.repository.Gio.InputStream The type of the None singleton. .. versionadded:: 2.44 .. attribute:: props.output_stream :type: ~gi.repository.Gio.OutputStream The type of the None singleton. .. versionadded:: 2.44