- /**
- * Helper method to get the value as a java int from two bytes starting at given array offset
- * @param bytes the array of bytes
- * @param offset the offset to start
- * @return the correspondanding java int value
- */
- public static int getValue(byte[] bytes, int offset) {
- int value = (bytes[offset + 1] << 8) & 0xFF00;
- value += (bytes[offset] & 0xFF);
- return value;
- }
+ /**
+ * Helper method to get the value as a java int from two bytes starting at
+ * given array offset
+ *
+ * @param bytes
+ * the array of bytes
+ * @param offset
+ * the offset to start
+ * @return the correspondanding java int value
+ */
+ public static int getValue(byte[] bytes, int offset) {
+ int value = (bytes[offset + 1] << 8) & 0xFF00;
+ value += (bytes[offset] & 0xFF);
+ return value;
+ }