if (readBytes != 708) {
throw new IOException(
"Cannot read data block from file, not enough bytes available");
}
HueGroup hueGroup = new HueGroup();
hueGroup.setHeader(getIntValue(data, 0));
HueEntry[] entries = new HueEntry[8];
for (int i = 0; i < 8; i++) {
entries[i] = getHueEntry(data, (4 + (i * 88)));
}
hueGroup.setEntries(entries);
return hueGroup;
}