ByteArrayInputStream (int index) { int start = getDataStart(index); if (start == 0) return new ByteArrayInputStream(ArrayUtilRt.EMPTY_BYTE_ARRAY); int end = myAllStarts.nextSetBit(start + 1); if (end < 0) end = mySerializedStubs.length + 1; return new ByteArrayInputStream(mySerializedStubs, start - 1, end - start); }