question: @ Override public XMLEvent peek ( ) throws XMLStreamException { log . log ( Level . FINE , "peek()" ) ; if ( ! hasNext ( ) ) { throw new XMLStreamException ( "The reader is depleted!" ) ; } log . log ( Level . FINE , "peek(): {0}" , nextEvent ) ; return nextEvent ; }
target:  Check the next XMLEvent without reading it from the stream. Returns null  if the stream is at EOF or has no more XMLEvents. A call to peek() will  be equal to the next return of next().