Here you can find the source of getInt2(byte[] b, int offset)
public static int getInt2(byte[] b, int offset)
//package com.java2s; public class Main { public static int getInt2(byte[] b, int offset) { return ((b[offset] & 0xff) << 8) | (b[offset + 1] & 0xff); }/*from w w w .j a v a 2s.c om*/ }