MCPcopy Create free account
hub / github.com/SeanDragon/protools / getFileMD5

Method getFileMD5

common/src/main/java/pro/tools/file/ToolFile.java:1370–1373  ·  view source on GitHub ↗

获取文件的MD5校验码 @param filePath 文件路径 @return 文件的MD5校验码

(String filePath)

Source from the content-addressed store, hash-verified

1368 * @return 文件的MD5校验码
1369 */
1370 public static byte[] getFileMD5(String filePath) throws IOException, NoSuchAlgorithmException {
1371 File file = ToolStr.isSpace(filePath) ? null : new File(filePath);
1372 return getFileMD5(file);
1373 }
1374
1375 /**
1376 * 获取文件的MD5校验码

Callers 1

getFileMD5ToStringMethod · 0.95

Calls 3

isSpaceMethod · 0.95
getInstanceMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected