sclass IntArrayInputStream_littleEndian extends InputStream { int[] buf; int iBuf, j; *(int[] *buf) {} public int read() { if (iBuf > l(buf)) ret -1; int x = buf[iBuf]; int out = (x >>> (j*8)) & 0xFF; if (++j >= 4) ++iBuf; ret out; } }