code: public static String decompress(String text) throws IOException {
          if (text == null || text.length() == 0) {
              return text;
          }
  
          // byte[] bytes = new BASE64Decoder().decodeBuffer(text);
          byte[] bytes = Base64.decodeBase64(text);
  
          try (GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(bytes));
               BufferedReader bf = new BufferedReader(new InputStreamReader(gis, UTF_8));) {
              StringBuilder outStr = new StringBuilder();
              String line;
              while ((line = bf.readLine()) != null) {
                  outStr.append(line);
              }
              return outStr.toString();
          }
      }
docs: The method decompresses the string using gzip.
  
  @param text The string to decompress.
  @return The decompressed string.
  @throws java.io.IOException Does some thing in old style.
  @deprecated use {@link #decompressString(String)} instead.