{
int token;
while ((token = _streamReader.next()) == AsyncXMLStreamReader.EVENT_INCOMPLETE) {
AsyncInputFeeder feeder = _streamReader.getInputFeeder();
if (!feeder.needMoreInput()) {
fail("Got EVENT_INCOMPLETE, could not feed more input");
}
if (_offset >= _xml.length) { // end-of-input?
feeder.endOfInput();
} else {