So this code is used to verify that the right decompressor is being used when reading a file, right?
But shouldn't the format be read to be able to select the right decompressor in the first place?