public class ByteArrayUtil
extends java.lang.Object
Constructor and Description |
---|
ByteArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static @Nullable byte[] |
compressGzipFile(byte[] bytes) |
static @Nullable byte[] |
decompressGzip(byte[] bytes) |
static void |
main(java.lang.String[] args) |
static byte[] |
toByteArray(java.lang.String hexString) |
static java.lang.String |
toHexString(byte[] byteArray)
字节数组转成16进制表示格式的字符串
|
public static byte[] toByteArray(java.lang.String hexString)
public static java.lang.String toHexString(byte[] byteArray)
byteArray
- 需要转换的字节数组public static void main(java.lang.String[] args)
@Nullable public static @Nullable byte[] decompressGzip(byte[] bytes)
@Nullable public static @Nullable byte[] compressGzipFile(byte[] bytes)