This commit is contained in:
Looly
2022-10-26 21:20:32 +08:00
parent c2262bc40e
commit 0d52562180
54 changed files with 1119 additions and 564 deletions

View File

@@ -194,7 +194,7 @@ public class GroupedSet extends HashMap<String, LinkedHashSet<String>> {
super.clear();
BufferedReader reader = null;
try {
reader = IoUtil.getReader(settingStream, charset);
reader = IoUtil.toReader(settingStream, charset);
// 分组
String group;
LinkedHashSet<String> valueSet = null;

View File

@@ -103,7 +103,7 @@ public class SettingLoader {
this.groupedMap.clear();
BufferedReader reader = null;
try {
reader = IoUtil.getReader(settingStream, this.charset);
reader = IoUtil.toReader(settingStream, this.charset);
// 分组
String group = null;

View File

@@ -50,7 +50,7 @@ public class YamlUtil {
* @return 加载的内容默认Map
*/
public static <T> T load(final InputStream in, final Class<T> type) {
return load(IoUtil.getBomReader(in), type);
return load(IoUtil.toBomReader(in), type);
}
/**