Iterate over a stream with EventStore.JVM

Hello,

I’m trying to iterate over the events of a given stream using EventStore.JVM client.

Here I saw a nice example to retrieve the first event of a stream but how can iterate until all the events have been red?

Thanks for the help

I forgot to mention the link: https://github.com/EventStore/EventStore.JVM/blob/master/src/main/java/eventstore/j/examples/ReadEventExample.java