MCPcopy Create free account
hub / github.com/duanluan/zutil / toChars

Method toChars

zutil-core/src/main/java/top/csaf/lang/ArrayUtil.java:97–99  ·  view source on GitHub ↗

字节数组转换为指定字符集的字符数组 @param bytes 字节数组 @param charsets 字符集 @return 指定字符集的字符数组

(@NonNull final byte[] bytes, @NonNull final Charset charsets)

Source from the content-addressed store, hash-verified

95 * @return 指定字符集的字符数组
96 */
97 public static char[] toChars(@NonNull final byte[] bytes, @NonNull final Charset charsets) {
98 return toString(bytes, charsets).toCharArray();
99 }
100
101 /**
102 * 字节数组转换为指定字符集的字符数组

Callers 3

toCharsMethod · 0.95
toCharsMethod · 0.95

Calls 1

toStringMethod · 0.95

Tested by 3

toCharsMethod · 0.76
toCharsMethod · 0.76