GMime.StreamFile¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
fp |
r |
standard-c FILE pointer |
|
owner |
r |
|
|
parent_object |
r |
parent |
Class Details¶
- class GMime.StreamFile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GMime.Stream
wrapper around standard-c FILE pointers.- classmethod new(fp)¶
- Parameters:
- Returns:
a stream using fp.
- Return type:
Creates a new
GMime.StreamFile
object around fp.Note: The created
GMime.StreamFile
object will own the FILE pointer passed in.
- classmethod new_with_bounds(fp, start, end)¶
- Parameters:
- Returns:
a stream using fp with bounds start and end.
- Return type:
Creates a new
GMime.StreamFile
object around fp with bounds start and end.Note: The created
GMime.StreamFile
object will own the FILE pointer passed in.
- classmethod open(path, mode)¶
- Parameters:
- Raises:
- Returns:
a stream using for reading and/or writing to the specified file path or
None
on error.- Return type:
Creates a new
GMime.StreamFile
object for the specified path.
- get_owner()¶
-
Gets whether or not self owns the backend FILE pointer.