byte b = mmb.get();
assertEquals("Got wrong byte value", (byte) 'A' + i, b); //$NON-NLS-1$
}
// Now convert to an IntBuffer to read our ints
IntBuffer ibuffer = mmb.asIntBuffer();
for (int i = 0; i < 5; i++) {
int val = ibuffer.get();
assertEquals("Got wrong int value", i + 1, val); //$NON-NLS-1$
}
fc.close();