I would like a simple code to compress and decompress a String in Java. Using GZIP.
ex; String input = "Hello world";
and where the output would be a compressed string.
ex; String output = "%%#";
The requirement is to take the existing string compress it and write it on to a text file as a string. The decompression would be to read the text file and convert the content to string. Is this possible??