mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add HttpDownloader
This commit is contained in:
@@ -130,8 +130,7 @@ public class DesensitizedUtil {
|
||||
if (StrUtil.isBlank(fullName)) {
|
||||
return StrUtil.EMPTY;
|
||||
}
|
||||
final String name = StrUtil.subPre(fullName, 1);
|
||||
return StrUtil.padAfter(name, StrUtil.length(fullName), "*");
|
||||
return StrUtil.hide(fullName, 1, fullName.length());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,6 +1,8 @@
|
||||
package cn.hutool.core.util;
|
||||
|
||||
/**
|
||||
* 进制转换工具类,可以转换为任意进制
|
||||
* <p>
|
||||
* 把一个十进制整数根据自己定义的进制规则进行转换<br>
|
||||
* from:https://gitee.com/loolly/hutool/pulls/260
|
||||
* <p>
|
||||
@@ -107,7 +109,7 @@ public class RadixUtil {
|
||||
/**
|
||||
* 把转换后进制的字符还原成long 值
|
||||
*
|
||||
* @param radixs 自定进制,需要和encode的保持一致
|
||||
* @param radixs 自定进制,需要和encode的保持一致
|
||||
* @param encodeStr 需要转换成十进制的字符串
|
||||
* @return long
|
||||
*/
|
||||
|
@@ -23,7 +23,7 @@ import java.util.ServiceLoader;
|
||||
public class ServiceLoaderUtil {
|
||||
|
||||
/**
|
||||
* 加载第一个可用服务,如果用户定义了多个接口实现类,只获取第一个不报错的服务。
|
||||
* 。加载第一个可用服务,如果用户定义了多个接口实现类,只获取第一个不报错的服务
|
||||
*
|
||||
* @param <T> 接口类型
|
||||
* @param clazz 服务接口
|
||||
|
Reference in New Issue
Block a user