Message-ID: <1108251862.1239.1417198887897.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1238_2105886948.1417198887896" ------=_Part_1238_2105886948.1417198887896 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Below are a couple of quick methods for zipping and unziping java String= values. Optionally (with true as the second param) the method 'chunk= s' the resulting base64 encoded zipped string. Chunking just means lo= ng lines are broken at a specific column (line feeds inserted) to make the = encoded data more easy to manage (think SSH keys).
Paste the below into a file "zipString.groovy" and run:
and now for the code:
Executing the script gives the following output:
Author: Matias Bjarland, Iteego Inc