DataInputBuffer buf = new DataInputBuffer();
buf.reset(index, index.length);
List<CubeIndexEntry> result = new ArrayList<CubeIndexEntry>();
try {
while(true) {
CubeIndexEntry entry = new CubeIndexEntry();
entry.readFields(buf);
result.add(entry);
}
} catch(EOFException e) {
}
return result;