Gio.SimpleIOStream¶
class — extends IOStream
GSimpleIOStream creates a IOStream from an arbitrary
InputStream and OutputStream. This allows any pair of
input and output streams to be used with IOStream methods.
This is useful when you obtained a InputStream and a
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 IOStream.
Constructors¶
new¶
Creates a new SimpleIOStream wrapping input_stream and output_stream.
See also IOStream.
Parameters:
input_stream— aInputStream.output_stream— aOutputStream.
Properties¶
input_stream¶
The InputStream to read from.
output_stream¶
The OutputStream to write to.