public static String compressStringToBase64String ( String value ) throws IOException { return new String ( Base64 . encode ( compressString ( value ) ) , StandardCharsets . UTF_8 ) ; }
Encodes the given string with Base64 encoding and then GZIP compresses it . Returns result as a Base64 encoded string .