code: public static String getEntireFileSha1(String filePath) throws Exception {
  		InputStream fileInputStream = null;
  		try {
  			fileInputStream = CommonFileUtils.getFileInputStream(filePath);
  			String sha1Digest = DigestUtils.sha1Hex(fileInputStream);
  			return sha1Digest;
  		} catch (Exception e) {
  			String errMsg = "getFileSha1 occur a exception, file:" + filePath + ", exception:" + e.toString();
  			LOG.error(errMsg);
  			throw new Exception(errMsg);
  		} finally {
  			try {
  				CommonFileUtils.closeFileStream(fileInputStream, filePath);
  			} catch (Exception e) {
  				throw e;
  			}
  		}
  	}
docs: 获取整个文件的SHA1
  
  @param fileInputStream
  文件的输入流
  @return 文件对应的SHA1值
  @throws Exception