mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add methods
This commit is contained in:
parent
d07feb9065
commit
758626a482
@ -1241,4 +1241,17 @@ public class IoUtil {
|
||||
}
|
||||
return checksum;
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算流的校验码,计算后关闭流
|
||||
*
|
||||
* @param in 流
|
||||
* @param checksum {@link Checksum}
|
||||
* @return Checksum
|
||||
* @throws IORuntimeException IO异常
|
||||
* @since 5.4.0
|
||||
*/
|
||||
public static long checksumValue(InputStream in, Checksum checksum){
|
||||
return checksum(in, checksum).getValue();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user