public class ByteArrayUtils
extends java.lang.Object
Constructor and Description |
---|
ByteArrayUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(byte[] a1,
int a1Offset,
byte[] a2,
int a2Offset,
int length)
Check whether some part or whole of two byte arrays is equal, for
length bytes starting at some
offset. |
static java.lang.String |
printHex(byte[] array,
int offset,
int len)
Get a hexadecimal representation of a byte array starting at
offset index for len
bytes, with each octet separated by a space. |
static java.lang.String |
toHex(byte[] array)
Get the hexadecimal representation of a byte array.
|
static java.lang.String |
toHex(byte[] array,
int offset,
int len)
Get the hexadecimal representation of a byte array starting at
offset index for len
bytes. |
public static boolean equals(byte[] a1, int a1Offset, byte[] a2, int a2Offset, int length)
length
bytes starting at some
offset.a1
- a1Offset
- a2
- a2Offset
- length
- true
or false
public static java.lang.String printHex(byte[] array, int offset, int len)
offset
index for len
bytes, with each octet separated by a space.array
- offset
- len
- public static java.lang.String toHex(byte[] array)
array
- public static java.lang.String toHex(byte[] array, int offset, int len)
offset
index for len
bytes.array
- offset
- len
-