public class ArrayUtils
extends java.lang.Object
Constructor and Description |
---|
ArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
ByteArrayToInt(byte[] bytes)
Convert a byte array to an int type
|
static long |
ByteArrayToLong(byte[] bytes)
Convert a byte array to a long type
|
static java.lang.String |
ByteArrayToString(byte[] bytes)
Convert a byte array to a string
|
static void |
IntToByteArray(int value,
byte[] bytes)
Convert an int value into a byte array
|
public static java.lang.String ByteArrayToString(byte[] bytes)
bytes
- bytes to be converted to stringpublic static int ByteArrayToInt(byte[] bytes)
bytes
- a byte array which to be converted to intpublic static long ByteArrayToLong(byte[] bytes)
bytes
- a byte array which to be converted to longpublic static void IntToByteArray(int value, byte[] bytes)
value
- int value which to be convertedbytes
- converted result