Class: Gio::SimpleIOStream
- Inherits:
-
Object
- Object
- Gio::SimpleIOStream
- 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
-
#input_stream ⇒ Gio::InputStream
Input-stream.
- #input_stream=(input_stream) ⇒ Gio::InputStream
-
#new(input_stream, output_stream) ⇒ Gio::IOStream
Creates a new GSimple::IOStream wrapping input_stream and output_stream.
-
#output_stream ⇒ Gio::OutputStream
Output-stream.
- #output_stream=(output_stream) ⇒ Gio::OutputStream
Instance Method Details
#input_stream ⇒ Gio::InputStream
Returns input-stream.
#input_stream=(input_stream) ⇒ Gio::InputStream
#new(input_stream, output_stream) ⇒ Gio::IOStream
Creates a new GSimple::IOStream wrapping input_stream and output_stream. See also #GIOStream.
#output_stream ⇒ Gio::OutputStream
Returns output-stream.