Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Executing the script gives the following output: 

 

Code Block
$ groovy zipString.groovy
plaintext
- "Why is a raven like a writing-desk?"
  "Have you guessed the riddle yet?" the Hatter said, turning to Alice again.
- "No, I give it up," Alice replied: "What’s the answer?"
- "I haven’t the slightest idea," said the Hatter
---
zipped
H4sIAAAAAAAAAE2OMQ7CMAxFd07xlbnlACwVW7uwMkfESq1GaRU7VN24BtfjJLgVA6P/t59fC3cfN7DAo/gnZSSeyIa1sHKObSCZOncCXG81trkiVhKhAB0JhUNIFpN27gh6r0oF4jk00FqyQaAzrokfxo2e8/nUwt3mBgMiG5MVdWncb6XQkpjCZRfz+nm95eD6LCsVM7HbAeOuap0enSSOo5IoOJA30v79z+YLtRhemOUAAAA=
---
zippedChunked
H4sIAAAAAAAAAE2OMQ7CMAxFd07xlbnlACwVW7uwMkfESq1GaRU7VN24BtfjJLgVA6P/t59fC3cf
N7DAo/gnZSSeyIa1sHKObSCZOncCXG81trkiVhKhAB0JhUNIFpN27gh6r0oF4jk00FqyQaAzrokf
xo2e8/nUwt3mBgMiG5MVdWncb6XQkpjCZRfz+nm95eD6LCsVM7HbAeOuap0enSSOo5IoOJA30v79
z+YLtRhemOUAAAA=

---
decoded
- "Why is a raven like a writing-desk?"
  "Have you guessed the riddle yet?" the Hatter said, turning to Alice again.
- "No, I give it up," Alice replied: "What’s the answer?"
- "I haven’t the slightest idea," said the Hatter
---
decodedChunked
- "Why is a raven like a writing-desk?"
  "Have you guessed the riddle yet?" the Hatter said, turning to Alice again.
- "No, I give it up," Alice replied: "What’s the answer?"
- "I haven’t the slightest idea," said the Hatter
---

...