Gsf.InputStdio

g GObject.Object GObject.Object Gsf.Input Gsf.Input GObject.Object->Gsf.Input Gsf.InputStdio Gsf.InputStdio Gsf.Input->Gsf.InputStdio

Subclasses:None

Methods

Inherited:Gsf.Input (24), GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (filename)
class new_FILE (filename, file, keep_open)

Virtual Methods

Inherited:Gsf.Input (3), GObject.Object (7)

Properties

Inherited:Gsf.Input (7)

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)

Class Details

class Gsf.InputStdio(**kwargs)
Bases:Gsf.Input
Abstract:No
classmethod new(filename)
Parameters:filename (str) – in utf8.
Raises:GLib.Error
Returns:a new file or None.
Return type:Gsf.Input
classmethod new_FILE(filename, file, keep_open)
Parameters:
  • filename (str) – The filename corresponding to file.
  • file (object or None) – an existing stdio FILE *
  • keep_open (bool) – Should file be closed when the wrapper is closed
Returns:

a new Gsf.Input wrapper for file. Note that if the file is not seekable, this function will make a local copy of the entire file.

Return type:

Gsf.Input

Assumes ownership of file when succeeding. If keep_open is true, ownership reverts to caller when the Gsf.Input is closed.