Here you can find the source of getShort(byte[] b, int index)
public static short getShort(byte[] b, int index)
//package com.java2s; public class Main { public static short getShort(byte[] b, int index) { return (short) (((b[index + 1] << 8) | b[index + 0] & 0xff)); }/* w w w .j av a 2 s . co m*/ }