Gio.InputStream
const Gio = imports.gi.Gio; let inputStream = new Gio.InputStream();
Gio.InputStream has functions to read from a stream (Gio.InputStream.prototype.read), to close a stream (Gio.InputStream.prototype.close) and to skip some content (Gio.InputStream.prototype.skip).
To copy the content of an input stream to an output stream without manually handling the reads and writes, use Gio.OutputStream.prototype.splice.
All of these functions have async variants too.
Hierarchy
-
GObject.Object
- Gio.InputStream
Methods
- Gio.InputStream.prototype.clear_pending
- Gio.InputStream.prototype.close
- Gio.InputStream.prototype.close_async
- Gio.InputStream.prototype.close_finish
- Gio.InputStream.prototype.has_pending
- Gio.InputStream.prototype.is_closed
- Gio.InputStream.prototype.read
- Gio.InputStream.prototype.read_all
- Gio.InputStream.prototype.read_async
- Gio.InputStream.prototype.read_bytes
- Gio.InputStream.prototype.read_bytes_async
- Gio.InputStream.prototype.read_bytes_finish
- Gio.InputStream.prototype.read_finish
- Gio.InputStream.prototype.set_pending
- Gio.InputStream.prototype.skip
- Gio.InputStream.prototype.skip_async
- Gio.InputStream.prototype.skip_finish