{
ByteArrayInputStream bin = new ByteArrayInputStream(mData);
char[] cbuf = new char[mData.length];
IOContext ctxt = new IOContext(new BufferRecycler(), this, false);
int sum = 0;
for (int i = 0; i < reps; ++i) {
/* This may be unfair advantage (allocating buffer of exact
* size)? But let's do that for now
*/
//char[] cbuf = new char[mData.length];
//InputStreamReader r = new InputStreamReader(bin, "UTF-8");
byte[] bbuf = ctxt.allocReadIOBuffer();
/* 13-Jan-2009, tatu: Note: Noggit doesn't use our turbo-charged
* UTF8 codec by default. But let's make it as fast as we
* possibly can...
*/
UTF8Reader r = new UTF8Reader(ctxt, bin, bbuf, 0, 0);