this.chunkOffsets[i] = readStreamInt(stream);
this.startOfCategoryTables = readStreamInt(stream);
int size = readStreamInt(stream);
this.categoryOffsets = new HashtableOfIntValues(size);
this.categoryEnds = new HashtableOfIntValues(size);
if (length != -1 && size > length) {
// not an accurate check, but good enough https://bugs.eclipse.org/bugs/show_bug.cgi?id=350612
if (DEBUG)
System.out.println("Index file is corrupted " + this.indexLocation); //$NON-NLS-1$
throw new IOException("Index file is corrupted " + this.indexLocation); //$NON-NLS-1$