synchronized void nextEvent ( ) { if ( currentPosition > positionOfLastSync ) { throw new IllegalStateException ( "Cannot advance past the last" + " EV_SYN EV_SYN_REPORT 0" ) ; } currentPosition += eventStruct . getSize ( ) ; if ( MonocleSettings . settings . traceEventsVerbose && hasNextEvent ( ) ) { MonocleTrace . traceEvent ( "Processing %s [index=%d]" , getEventDescription ( ) , currentPosition ) ; } }
Advances to the next event line . Call from the application thread .