All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.diff.utils.DecompressUtil Maven / Gradle / Ivy

There is a newer version: 0.2.15
Show newest version
package com.arextest.diff.utils;

import com.arextest.diff.handler.decompress.DecompressServiceBuilder;
import com.arextest.diff.model.DecompressConfig;
import com.arextest.diff.service.DecompressService;

public class DecompressUtil {

  public static String decompressPlugin(String pluginJarUrl, DecompressConfig decompressConfig,
      String fieldValue) throws Throwable {
    String name = decompressConfig.getName();
    String args = decompressConfig.getArgs();
    DecompressService decompressService = DecompressServiceBuilder.getDecompressService(
        pluginJarUrl, name);
    if (decompressService == null) {
      throw new Exception("decompressService not exist");
    }
    return decompressService.decompress(fieldValue, args);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy