if(dataLength <= 0) throw new StorageFormatException("Bad data length");
if(dataLength != originalData.size())
throw new ResumeFailedException("Original data size is "+originalData.size()+" should be "+dataLength);
if(((dataLength + CHKBlock.DATA_LENGTH - 1) / CHKBlock.DATA_LENGTH) != totalDataBlocks)
throw new StorageFormatException("Data blocks "+totalDataBlocks+" not compatible with size "+dataLength);
decompressedLength = dis.readLong();
if(decompressedLength <= 0)
throw new StorageFormatException("Bogus decompressed length");
isMetadata = dis.readBoolean();
short atype = dis.readShort();
if(atype == -1) {