code: public static String getChecksum(InputStream is, String algorithm) throws IOException {
  
  		if (algorithm.equals(JawrConstant.CRC32_ALGORITHM)) {
  			return getCRC32Checksum(is);
  		} else if (algorithm.equals(JawrConstant.MD5_ALGORITHM)) {
  			return getMD5Checksum(is);
  		} else {
  			throw new BundlingProcessException("The checksum algorithm '" + algorithm + "' is not supported.\n"
  					+ "The only supported algorithm are 'CRC32' or 'MD5'.");
  		}
  	}
docs: Returns the checksum value of the input stream taking in count the
  algorithm passed in parameter
  
  @param is
  the input stream
  @param algorithm
  the checksum algorithm
  @return the checksum value
  @throws IOException
  if an exception occurs.