if file name ends with .gz, GzipFileReader will be selected