code: static public byte[] zip(InputStream in) throws IOException {
  		ByteArrayOutputStream bos = new ByteArrayOutputStream();
  		VariableGZIPOutputStream compress = new VariableGZIPOutputStream(bos, 10240);  // is 10k too big?
  		compress.setLevel(Deflater.BEST_COMPRESSION);
  		Writer writer = new OutputStreamWriter(compress, "UTF-8"); //$NON-NLS-1$
  		// Copy the data from the input stream to the output, compressing as we go.
  		CopyUtil.copy(in, writer);
  		return bos.toByteArray();
  	}
docs: Returns a byte array containing the gzipped contents of the input stream
  
  @param in
  the input stream to zip
  @return the gzipped contents in a byte array
  @throws IOException