init_with_stream


Description:

public int init_with_stream (Stream stream) throws Error

Initialise the scanner with a source stream.

The scanner's offsets will be relative to the current file position of the stream. As a result, seekable streams should only be seeked using the parser seek function.

Parameters:

this

a MimeParser

stream

a Stream to init with

Returns:

-1 on error.




2022 vala-language.org