throw new StorageFormatException("Wrong version "+version);
// 2 bytes: Checksum type
byte[] checksumTypeBuf = new byte[2];
raf.pread(rafLength-14, checksumTypeBuf, 0, 2);
dis = new DataInputStream(new ByteArrayInputStream(checksumTypeBuf));
int checksumType = dis.readShort();
if(checksumType != ChecksumChecker.CHECKSUM_CRC)
throw new StorageFormatException("Unknown checksum type "+checksumType);
// 4 bytes: Flags. Unused at present.
byte[] flagsBuf = new byte[4];
raf.pread(rafLength-18, flagsBuf, 0, 4);