public class ByteUtils extends Object
| Constructor and Description |
|---|
ByteUtils() |
| Modifier and Type | Method and Description |
|---|---|
static UUID |
bytesToUUID(byte[] bytes) |
static byte[] |
hexStringToByteArray(String s) |
static int |
readInt(InputStream inputStream) |
static int |
readUnsignedInt(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 int readUnsignedInt(InputStream inputStream) throws IOException
IOExceptionpublic static UUID bytesToUUID(byte[] bytes)
public static byte[] uuidToBytes(UUID uuid)
Copyright © 2016. All rights reserved.