code: public static byte[] compress(String s, String encoding)
              throws UnsupportedEncodingException, IOException
      {
          byte[] data = s.getBytes(encoding);
          return compress(data);
      }
docs: Compress the input string using the given encoding
  
  @param s
  @param encoding
  @return the compressed data
  @throws UnsupportedEncodingException
  @throws IOException