if(parser == null) parser = this.defaultParser;
parser.parse(is, header, context);
}
// Ensure the packet boundary
if(is.available() != 0) {
throw new NestableRuntimeException("assertion failed, available: " + is.available() + ", event type: " + header.getEventType());
}
} finally {
is.setReadLimit(0);
}