code: public static Archiver createArchiver(ArchiveFormat archiveFormat, CompressionType compression) {
          CommonsArchiver archiver = new CommonsArchiver(archiveFormat);
          CommonsCompressor compressor = new CommonsCompressor(compression);
  
          return new ArchiverCompressorDecorator(archiver, compressor);
      }
docs: Creates an Archiver for the given archive format that uses compression.
  
  @param archiveFormat the archive format
  @param compression the compression algorithm
  @return a new Archiver instance that also handles compression