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.
this | |
stream |
a Stream to init with |
-1 on error. |