question: private void loadEvents ( ) throws XMLStreamException { if ( ! xmlEventReader . hasNext ( ) ) { done = true ; return ; } XMLEvent event = xmlEventReader . nextEvent ( ) ; event = eventTransformer . transform ( event ) ; xmlWriteStream . reset ( ) ; xmlEventWriter . add ( event ) ; xmlEventWriter . flush ( ) ; xmlInStream = new ByteArrayInputStream ( xmlWriteStream . toByteArray ( ) ) ; }
target:  replenish the internal buffer