Преобразовать два байта в int java
int val = ((bytes[2] & 0xff) << 8) | (bytes[3] & 0xff);
Obnoxious Ox
int val = ((bytes[2] & 0xff) << 8) | (bytes[3] & 0xff);