public class ByteUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static UUID |
bytesToUUID(byte[] bytes) |
static byte[] |
concat(byte[] array1,
byte[] array2) |
static byte[] |
hexStringToByteArray(String s) |
static int |
readInt(InputStream inputStream) |
static String |
toHexString(byte[] bytes) |
static int |
toUnsignedInt(int value) |
static byte[] |
uuidToBytes(UUID uuid) |
public static byte[] hexStringToByteArray(String s)
public static String toHexString(byte[] bytes)
public static int toUnsignedInt(int value)
public static int readInt(InputStream inputStream) throws IOException
IOExceptionpublic static UUID bytesToUUID(byte[] bytes)
public static byte[] uuidToBytes(UUID uuid)
public static byte[] concat(byte[] array1,
byte[] array2)
Copyright © 2018. All rights reserved.