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());
}

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 ( ) ) ; }
replenish the internal buffer
