public class Bytes extends Object
| Constructor and Description |
|---|
Bytes() |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull String |
hex(@Nullable byte[] bytes) |
static void |
hex(@NotNull StringBuilder sb,
byte b) |
static int |
unicode(char c,
@Nullable byte[] ob)
把一个char变成java的unicode转移格式,`我`(25105)=>'我'
效率不高,更多场合,参考StringEscapeUtil,ByteBuffer
|
@NotNull public static @NotNull String hex(@Nullable @Nullable byte[] bytes)
public static void hex(@NotNull
@NotNull StringBuilder sb,
byte b)
public static int unicode(char c,
@Nullable
@Nullable byte[] ob)
c - 字符ob - 长度大于等于6的byte数组Copyright © 2020. All rights reserved.