Tar knows the difference of the file type by the name bzip/gzip