类 GzipUtils

java.lang.Object
com.cdkjframework.util.tool.GzipUtils

@Component public class GzipUtils extends Object
  • 构造器详细资料

    • GzipUtils

      public GzipUtils()
  • 方法详细资料

    • gZip

      public static String gZip(String param, String charset) throws IOException
      Gzip 加密
      参数:
      param - 参数
      charset - 编码
      返回:
      返回结果
      抛出:
      IOException - 异常信息
    • compress

      public static String compress(String param)
      使用gzip压缩字符串
      参数:
      param - 要压缩的字符串
      返回:
    • uncompress

      public static String uncompress(String compressedStr)
      使用gzip解压缩
      参数:
      compressedStr - 压缩字符串
      返回:
      返回解密字符