detect-compression
BufRead
and
Write
detects compression algorithms from file extension.