|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anthonyeden.lib.util.ByteUtilities
Utility class for working with bytes and byte arrays.
Method Summary | |
static int |
byteArrayToInt(byte[] b)
Convert the byte array to an int. |
static int |
byteArrayToInt(byte[] b,
int offset)
Convert the byte array to an int starting from the given offset. |
static byte[] |
intToByteArray(int value)
Convert the specified int to a 4 byte array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static byte[] intToByteArray(int value)
value
- The value
public static int byteArrayToInt(byte[] b)
b
- The byte array
public static int byteArrayToInt(byte[] b, int offset)
b
- The byte arrayoffset
- The array offset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |