next
Perform blocking reads from stdin until a full event can be parsed.
It is expected that this function will be called repeatedly in a loop.
Return
A parsed event, or null
if interrupt was called.
Throws
if input stream is closed (after processing all read bytes). A partial sequence will be returned as an UnknownEvent before this is thrown.