mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 19:49:35 +00:00
format all the things!
This commit is contained in:
1 parent
54ec75fd3d
commit
b36c6dade6
377 files changed
+6833
-6772
No files matched your search
@@ -16,14 +16,15 @@ import java.nio.charset.Charset;
|
||||
public class StringUtil
|
||||
{
|
||||
private static final Charset UTF8 = Charset.forName("UTF-8");
|
||||
|
||||
private StringUtil() {}
|
||||
|
||||
|
||||
private StringUtil() {
|
||||
}
|
||||
|
||||
public static String decodeUTF8(byte[] data)
|
||||
{
|
||||
return UTF8.decode(ByteBuffer.wrap(data)).toString().trim();
|
||||
}
|
||||
|
||||
|
||||
public static byte[] encodeUTF8(String data)
|
||||
{
|
||||
return UTF8.encode(data).array();
|
||||
|
||||
Reference in new issue
Block a user