code: public static String uncompressString(byte[] input, int offset, int length, String encoding)
              throws IOException,
              UnsupportedEncodingException
      {
          byte[] uncompressed = new byte[uncompressedLength(input, offset, length)];
          uncompress(input, offset, length, uncompressed, 0);
          return new String(uncompressed, encoding);
      }
docs: Uncompress the input[offset, offset+length) as a String of the given
  encoding
  
  @param input
  @param offset
  @param length
  @param encoding
  @return the uncompressed data
  @throws IOException