Gcr.Parser.prototype.parse_stream

function parse_stream(input: Gio.InputStream, cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for gcr_parser_parse_stream()
}
  

Parse items from the data in a Gio.InputStream. This function may block while reading from the input stream. Use Gcr.Parser.prototype.parse_stream_async for a non-blocking variant.

The Gcr.Parser::parsed and Gcr.Parser::authenticate signals may fire during the parsing.

input

The input stream

cancellable

An optional cancellation object

Returns

Whether the parsing completed successfully or not.