add HttpDownloader

This commit is contained in:
Looly
2021-04-25 18:13:44 +08:00
parent 2cedffa492
commit b14bbffa32
7 changed files with 157 additions and 83 deletions

View File

@@ -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());
}
/**

View File

@@ -1,6 +1,8 @@
package cn.hutool.core.util;
/**
* 进制转换工具类,可以转换为任意进制
* <p>
* 把一个十进制整数根据自己定义的进制规则进行转换<br>
* fromhttps://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
*/

View File

@@ -23,7 +23,7 @@ import java.util.ServiceLoader;
public class ServiceLoaderUtil {
/**
* 加载第一个可用服务,如果用户定义了多个接口实现类,只获取第一个不报错的服务
* 加载第一个可用服务,如果用户定义了多个接口实现类,只获取第一个不报错的服务
*
* @param <T> 接口类型
* @param clazz 服务接口