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

Method toString

zutil-core/src/main/java/top/csaf/lang/ArrayUtil.java:61–63  ·  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

59 * @return 指定字符集的字符串
60 */
61 public static String toString(@NonNull final byte[] bytes, @NonNull final Charset charsets) {
62 return new String(bytes, charsets);
63 }
64
65 /**
66 * 字节数组转换为指定字符集的字符串

Callers 15

toBytesAndToStringMethod · 0.95
toBytesAndToStringMethod · 0.95
toCharsMethod · 0.95
detectFormatMethod · 0.45
runRarAddCommandMethod · 0.45
decompressSingleMethod · 0.45
walkSourcesMethod · 0.45
toEntryNameMethod · 0.45

Calls

no outgoing calls

Tested by 9

toBytesAndToStringMethod · 0.76
toBytesAndToStringMethod · 0.76
testValidationMethod · 0.36
randomNanoIdMethod · 0.36
testGetMatcherMethod · 0.36