I\'m converting a byte array into int by doing this:
int
ByteArrayInputStream bais = new ByteArrayInputStream (data); DataInputStream dis = new Data
Java does not have unsigned int, so you'll have to manually invert the bits to get an unsigned value if you absolutely need to have one.
Got this from Google.