reset

open override fun reset()

This method is called by a consumer before it begins consumption using .incrementToken.

Resets this stream to a clean state. Stateful implementations must implement this method so that they can be reused, just as if they had been created fresh.

If you override this method, always call super.reset(), otherwise some internal state will not be correctly reset (e.g., Tokenizer will throw [ ] on further usage).