peekEvent

abstract fun peekEvent(): Event

Return the next event, but do not delete it from the stream.

Throws

in case of malformed input or NoSuchElementException in case no event is available.