code: public static Compressor createCompressor(String compression) throws IllegalArgumentException {
          if (!CompressionType.isValidCompressionType(compression)) {
              throw new IllegalArgumentException("Unkonwn compression type " + compression);
          }
  
          return createCompressor(CompressionType.fromString(compression));
      }
docs: Creates a compressor from the given compression type.
  
  @param compression the name of the compression algorithm e.g. "gz" or "bzip2".
  @return a new {@link Compressor} instance for the given compression algorithm
  @throws IllegalArgumentException if the compression type is unknown