title: How can I easily compress and decompress Strings to/from byte arrays?
body: <p>I have some strings that are roughly 10K characters each. There is plenty of repetition in them. They are serialized JSON objects. I'd like to easily compress them into a byte array, and uncompress them from a byte array.</p>
  
  <p>How can I most easily do this? I'm looking for methods so I can do the following:</p>
  
  <pre><code>String original = "....long string here with 10K characters...";
  byte[] compressed = StringCompressor.compress(original);
  String decompressed = StringCompressor.decompress(compressed);
  assert(original.equals(decompressed);
  </code></pre>