parse_stream


Description:

public bool parse_stream (InputStream input, Cancellable? cancellable = null) throws Error

Parse items from the data in a InputStream.

This function may block while reading from the input stream. Use [method@Parser.parse_stream_async] for a non-blocking variant.

The [signal@Parser:GcrParser:parsed] and [signal@Parser:GcrParser:authenticate] signals may fire during the parsing.

Parameters:

this

The parser

input

The input stream

cancellable

An optional cancellation object

Returns:

Whether the parsing completed successfully or not.