Because i could not find a suitable JAVA library which helps me developing software for communication with hardware, i developed this helper suite. A Netbeans Project including JUnit Tests are avaiable for download
Here an overview of the API:
public static String byteToHexString(byte byteArray_array)
static String byteToHexString(byte b)
public static int byteToUnsignedInt(byte_array b)
public static int byteToUnsignedInt(byte b)
public static byte_array intToByteArray(int_array intArray, int blockSize)
public static byte_array intToByteArray(int integer, int blockSize)
public static int howMuchBytesAreNeededToRepresentTheHighestIntegerInThisArray(int_array intArray)
public static byte_array stringToByte(String hexString)
public static byte_array concatenateBytes(byte_array a, byte_array b)
public static ArrayList byte_array splitAt(byte_array byteArray, int postion)