Class: Gio::SimpleIOStream

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

GSimpleIOStream creates a #GIOStream from an arbitrary GInput::Stream and GOutput::Stream. This allows any pair of input and output streams to be used with #GIOStream methods.

This is useful when you obtained a GInput::Stream and a #GOutputStream by other means, for instance creating them with platform specific methods as g_unix_input_stream_new() or g_win32_input_stream_new(), and you want to take advantage of the methods provided by #GIOStream.

Instance Method Summary collapse

Instance Method Details

#input_streamGio::InputStream

Returns input-stream.

Returns:

#input_stream=(input_stream) ⇒ Gio::InputStream

Parameters:

Returns:

#new(input_stream, output_stream) ⇒ Gio::IOStream

Creates a new GSimple::IOStream wrapping input_stream and output_stream. See also #GIOStream.

Parameters:

Returns:

#output_streamGio::OutputStream

Returns output-stream.

Returns:

#output_stream=(output_stream) ⇒ Gio::OutputStream

Parameters:

Returns: