public class Utility extends Object
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static long |
fourBytesToLong(byte[] value) |
static byte[] |
integerToFourBytes(int value) |
static byte |
integerToOneByte(int value) |
static byte[] |
integerToTwoBytes(int value) |
static int |
oneByteToInteger(byte value) |
static int |
twoBytesToInteger(byte[] value) |
public static final byte integerToOneByte(int value) throws UtilityException
UtilityException
public static final byte[] integerToTwoBytes(int value) throws UtilityException
UtilityException
public static final byte[] integerToFourBytes(int value) throws UtilityException
UtilityException
public static final int oneByteToInteger(byte value) throws UtilityException
UtilityException
public static final int twoBytesToInteger(byte[] value) throws UtilityException
UtilityException
public static final long fourBytesToLong(byte[] value) throws UtilityException
UtilityException