GMime.StreamGIO

g GMime.Stream GMime.Stream GMime.StreamGIO GMime.StreamGIO GMime.Stream->GMime.StreamGIO GObject.Object GObject.Object GObject.Object->GMime.Stream

Subclasses:

None

Methods

Inherited:

GMime.Stream (17), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (file)

class

new_with_bounds (file, start, end)

get_owner ()

set_owner (owner)

Virtual Methods

Inherited:

GMime.Stream (10), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

eos

bool

r

True if the end of the stream has been reached or False otherwise

file

Gio.File

r

a Gio.File

istream

Gio.InputStream

r

a Gio.InputStream

ostream

Gio.OutputStream

r

a Gio.OutputStream

owner

bool

r

True if this stream owns the Gio.File or False otherwise

parent_object

GMime.Stream

r

parent GMime.Stream

Class Details

class GMime.StreamGIO(**kwargs)
Bases:

GMime.Stream

Abstract:

No

Structure:

GMime.StreamGIOClass

A GMime.Stream wrapper around GLib’s GIO streams.

classmethod new(file)
Parameters:

file (Gio.File) – a Gio.File

Returns:

a stream using file.

Return type:

GMime.Stream

Creates a new GMime.StreamGIO wrapper around a Gio.File object.

classmethod new_with_bounds(file, start, end)
Parameters:
Returns:

a stream using file with bounds start and end.

Return type:

GMime.Stream

Creates a new GMime.StreamGIO stream around a Gio.File with bounds start and end.

get_owner()
Returns:

True if self owns the backend Gio.File or False otherwise.

Return type:

bool

Gets whether or not self owns the backend Gio.File.

set_owner(owner)
Parameters:

owner (bool) – True if this stream should own the Gio.File or False otherwise

Sets whether or not self owns the backend GIO pointer.

Note: owner should be True if the stream should close() the backend file descriptor when destroyed or False otherwise.