code: public static String uncompress(String compressedValue) throws IOException {
          if (compressedValue == null)
              return null;
  
          ByteArrayInputStream in = new ByteArrayInputStream(compressedValue.getBytes("ISO-8859-1"));
          GZIPInputStream gzip = null;
          Reader reader = null;
          try {
              String value = "";
              gzip = new GZIPInputStream(in);
              reader = new InputStreamReader(gzip, "ISO-8859-1");
              int i;
              while ((i = reader.read()) != -1)
                  value += (char) i;
              return value;
          }
          finally {
              if (gzip != null)
                  gzip.close();
              if (reader != null)
                  reader.close();
          }
      }
docs: Uncompress a string value that was compressed using GZIP.