case BLOCK_GZIP:
return new BlockCompressedInputStream(new File(fileName));
case GZIP:
return new GZIPInputStream(new FileInputStream(fileName));
case XZ:
return new SeekableXZInputStream(new SeekableFileInputStream(fileName));
case NONE:
return new FileInputStream(fileName);
}
throw new AssertionError(