Bufferlo chunkAsBytes = new Bufferlo();
DataInputStream dataIn = new DataInputStream(chunkAsBytes.getInputStream());
// read the whole chunk
int bytesRequired = size();
int read = chunkAsBytes.readFromChannel(fileChannel.position(offset), bytesRequired);
if(read < bytesRequired) throw new IOException("Expected " + bytesRequired + " but found " + read + " bytes");
// skip the chunk header
dataIn.readInt(); // on/off
dataIn.readInt(); // size to use