Gio.FileInputStream

const Gio = imports.gi.Gio;

let fileInputStream = new Gio.FileInputStream();
  

GFileInputStream provides input streams that take their content from a file.

GFileInputStream implements Gio.Seekable, which allows the input stream to jump to arbitrary positions in the file, provided the filesystem of the file allows it. To find the position of a file input stream, use Gio.Seekable.prototype.tell. To find out if a file input stream supports seeking, use Gio.Seekable.prototype.can_seek. To position a file input stream, use Gio.Seekable.prototype.seek.

Hierarchy

  • GObject.Object
    • Gio.InputStream
      • Gio.FileInputStream