This commit is contained in:
Redkale
2020-01-27 12:31:34 +08:00
parent 62145a2aad
commit b14f32deb3

View File

@@ -342,6 +342,17 @@ public final class ByteArray {
return new String(content, offset, len, charset);
}
/**
* 将指定的起始位置和长度按指定字符集并转义后转成字符串
*
* @param charset 字符集
*
* @return 字符串
*/
public String toDecodeString(final Charset charset) {
return toDecodeString(0, count, charset);
}
/**
* 将指定的起始位置和长度按指定字符集并转义后转成字符串
*