GMime.StreamNull

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

get_count_newlines ()

set_count_newlines (count)

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

count_newlines

bool

r

whether or not the stream should count newlines

newlines

int

r

the number of newlines written to this stream

parent_object

GMime.Stream

r

parent GMime.Stream

written

int

r

number of bytes written to this stream

Class Details

class GMime.StreamNull(**kwargs)
Bases:

GMime.Stream

Abstract:

No

Structure:

GMime.StreamNullClass

A GMime.Stream which has no backing store.

classmethod new()
Returns:

a new null stream (similar to /dev/null on Unix).

Return type:

GMime.Stream

Creates a new GMime.StreamNull object.

get_count_newlines()
Returns:

True if the stream should count the number of newlines or False otherwise.

Return type:

bool

Gets whether or not the stream should keep track of the number of newlines encountered.

set_count_newlines(count)
Parameters:

count (bool) – True if newlines should be counted or False otherwise

Sets whether or not the stream should keep track of the number of newlines encountered.