tar --help lists tar flags. -xzf applies to gzip. -xjf to bz2. -xJf to xz.
tar --help
tar
-xzf
gzip
-xjf
bz2
-xJf
xz